tx · AMXiXxZBZLW39K8sFGpSxPS8714QNpYE3fd7uXZRFWGB

3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5:  -0.01000000 Waves

2023.05.29 15:21 [2599262] smart account 3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5 > SELF 0.00000000 Waves

{ "type": 13, "id": "AMXiXxZBZLW39K8sFGpSxPS8714QNpYE3fd7uXZRFWGB", "fee": 1000000, "feeAssetId": null, "timestamp": 1685362915779, "version": 2, "chainId": 84, "sender": "3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5", "senderPublicKey": "EMAuwff72FwVoiJK9xHyuUUMbpKmgV5temqeLU2aEsiS", "proofs": [ "3i1h7oVFvf342gwVbbgxPiZz4nu7ohVz6wxWjGDGLfeogCJ4MALBq83KjusevZRLTQP2qBfnb5g98bmGY2PtJu4y" ], "script": "base64:BgIOCAISABIAEgASABIAEgAEAQ9nZXRSYW5kb21OdW1iZXIABA9yYW5kb21TZWVkQmxvY2sJAQV2YWx1ZQEJAO0HAQACBApyYW5kb21IYXNoCQDUFgEJAQV2YWx1ZQEIBQ9yYW5kb21TZWVkQmxvY2sDdnJmCQCxCQEFCnJhbmRvbUhhc2gBEGdldFJhbmRvbU51bWJlcjIABA9yYW5kb21TZWVkQmxvY2sJAQV2YWx1ZQEJAO0HAQACBApyYW5kb21IYXNoCQDUFgEJAQV2YWx1ZQEIBQ9yYW5kb21TZWVkQmxvY2sDdnJmCQDaBAEFCnJhbmRvbUhhc2gBB3Rlc3Q1aDEBB2FkZHJlc3MJAMwIAgkBC1N0cmluZ0VudHJ5AgIIYWRkcmVzczIFB2FkZHJlc3MFA25pbAEEY2FsYwAAAwYBaQEFdGVzdDEABAZyZXN1bHQJARBnZXRSYW5kb21OdW1iZXIyAAkAlAoCBQNuaWwFBnJlc3VsdAFpAQV0ZXN0MwAEB2FkZHJlc3MJANgEAQgIBQFpBmNhbGxlcgVieXRlcwkAzAgCCQELU3RyaW5nRW50cnkCAgdhZGRyZXNzBQdhZGRyZXNzBQNuaWwBaQEFdGVzdDQABAdhZGRyZXNzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMJAAIBBQdhZGRyZXNzAWkBBXRlc3Q1AAQHYWRkcmVzcwkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzCQEHdGVzdDVoMQEFB2FkZHJlc3MBaQEFdGVzdDYABAdhZGRyZXNzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEAXIJAQd0ZXN0NWgxAQUHYWRkcmVzcwkAAgEFB2FkZHJlc3MBaQEFdGVzdDcABAdhZGRyZXNzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEAXIJAKQDAQkBD2dldFJhbmRvbU51bWJlcgAJAAIBBQFyAL9TxPo=", "height": 2599262, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3aGBcw4J4swV2EM188wejH5c18xMTDcNjrDwNR2u2YF9 Next: GWRkvXaiHtPWDk8z2MNAZKH7y1JiwfXzj32xBbs55Ci8 Diff:
OldNewDifferences
2323
2424 @Callable(i)
2525 func test1 () = {
26- let result = 666
26+ let result = getRandomNumber2()
2727 $Tuple2(nil, result)
2828 }
2929
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getRandomNumber () = {
55 let randomSeedBlock = value(blockInfoByHeight(2))
66 let randomHash = sha256_16Kb(value(randomSeedBlock.vrf))
77 toInt(randomHash)
88 }
99
1010
1111 func getRandomNumber2 () = {
1212 let randomSeedBlock = value(blockInfoByHeight(2))
1313 let randomHash = sha256_16Kb(value(randomSeedBlock.vrf))
1414 toBase64String(randomHash)
1515 }
1616
1717
1818 func test5h1 (address) = [StringEntry("address2", address)]
1919
2020
2121 func calc () = 3
2222
2323
2424 @Callable(i)
2525 func test1 () = {
26- let result = 666
26+ let result = getRandomNumber2()
2727 $Tuple2(nil, result)
2828 }
2929
3030
3131
3232 @Callable(i)
3333 func test3 () = {
3434 let address = toBase58String(i.caller.bytes)
3535 [StringEntry("address", address)]
3636 }
3737
3838
3939
4040 @Callable(i)
4141 func test4 () = {
4242 let address = toBase58String(i.caller.bytes)
4343 throw(address)
4444 }
4545
4646
4747
4848 @Callable(i)
4949 func test5 () = {
5050 let address = toBase58String(i.caller.bytes)
5151 test5h1(address)
5252 }
5353
5454
5555
5656 @Callable(i)
5757 func test6 () = {
5858 let address = toBase58String(i.caller.bytes)
5959 let r = test5h1(address)
6060 throw(address)
6161 }
6262
6363
6464
6565 @Callable(i)
6666 func test7 () = {
6767 let address = toBase58String(i.caller.bytes)
6868 let r = toString(getRandomNumber())
6969 throw(r)
7070 }
7171
7272

github/deemru/w8io/169f3d6 
26.34 ms