tx · BiPxeH2DoWVMnNnvRipw2GNdxptzhik4NM3aZz4VNF29

3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5:  -0.01000000 Waves

2023.05.29 14:52 [2599231] smart account 3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5 > SELF 0.00000000 Waves

{ "type": 13, "id": "BiPxeH2DoWVMnNnvRipw2GNdxptzhik4NM3aZz4VNF29", "fee": 1000000, "feeAssetId": null, "timestamp": 1685361135865, "version": 2, "chainId": 84, "sender": "3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5", "senderPublicKey": "EMAuwff72FwVoiJK9xHyuUUMbpKmgV5temqeLU2aEsiS", "proofs": [ "AgvJwfzNHgHDUm6r3mfn3agbUBWr16NkQ4WNvHcE158bPtmVmfkdPxtfvNc72yZ25s7vaFqNr4yagP1MeGkZHqW" ], "script": "base64:BgIOCAISABIAEgASABIAEgAEAQ9nZXRSYW5kb21OdW1iZXIABA9yYW5kb21TZWVkQmxvY2sJAQV2YWx1ZQEJAO0HAQACBApyYW5kb21IYXNoCQDUFgEJAQV2YWx1ZQEIBQ9yYW5kb21TZWVkQmxvY2sDdnJmCQCxCQEFCnJhbmRvbUhhc2gBEGdldFJhbmRvbU51bWJlcjIABA9yYW5kb21TZWVkQmxvY2sJAQV2YWx1ZQEJAO0HAQACBApyYW5kb21IYXNoCQDUFgEJAQV2YWx1ZQEIBQ9yYW5kb21TZWVkQmxvY2sDdnJmCQDaBAEFCnJhbmRvbUhhc2gBB3Rlc3Q1aDEBB2FkZHJlc3MJAMwIAgkBC1N0cmluZ0VudHJ5AgIIYWRkcmVzczIFB2FkZHJlc3MFA25pbAEEY2FsYwAAAwYBaQEFdGVzdDEABAZyZXN1bHQJAQRjYWxjAAkAlAoCBQNuaWwFBnJlc3VsdAFpAQV0ZXN0MwAEB2FkZHJlc3MJANgEAQgIBQFpBmNhbGxlcgVieXRlcwkAzAgCCQELU3RyaW5nRW50cnkCAgdhZGRyZXNzBQdhZGRyZXNzBQNuaWwBaQEFdGVzdDQABAdhZGRyZXNzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMJAAIBBQdhZGRyZXNzAWkBBXRlc3Q1AAQHYWRkcmVzcwkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzCQEHdGVzdDVoMQEFB2FkZHJlc3MBaQEFdGVzdDYABAdhZGRyZXNzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEAXIJAQd0ZXN0NWgxAQUHYWRkcmVzcwkAAgEFB2FkZHJlc3MBaQEFdGVzdDcABAdhZGRyZXNzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEAXIJAKQDAQkBD2dldFJhbmRvbU51bWJlcgAJAAIBBQFyAI92t5Q=", "height": 2599231, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GFDz3zfQCWLqqVU9QCs6qTR4KQgdTCZUqWDKprTRMP9m Next: 3aGBcw4J4swV2EM188wejH5c18xMTDcNjrDwNR2u2YF9 Diff:
OldNewDifferences
55 let randomSeedBlock = value(blockInfoByHeight(2))
66 let randomHash = sha256_16Kb(value(randomSeedBlock.vrf))
77 toInt(randomHash)
8+ }
9+
10+
11+func getRandomNumber2 () = {
12+ let randomSeedBlock = value(blockInfoByHeight(2))
13+ let randomHash = sha256_16Kb(value(randomSeedBlock.vrf))
14+ toBase64String(randomHash)
815 }
916
1017
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)
8+ }
9+
10+
11+func getRandomNumber2 () = {
12+ let randomSeedBlock = value(blockInfoByHeight(2))
13+ let randomHash = sha256_16Kb(value(randomSeedBlock.vrf))
14+ toBase64String(randomHash)
815 }
916
1017
1118 func test5h1 (address) = [StringEntry("address2", address)]
1219
1320
1421 func calc () = 3
1522
1623
1724 @Callable(i)
1825 func test1 () = {
1926 let result = calc()
2027 $Tuple2(nil, result)
2128 }
2229
2330
2431
2532 @Callable(i)
2633 func test3 () = {
2734 let address = toBase58String(i.caller.bytes)
2835 [StringEntry("address", address)]
2936 }
3037
3138
3239
3340 @Callable(i)
3441 func test4 () = {
3542 let address = toBase58String(i.caller.bytes)
3643 throw(address)
3744 }
3845
3946
4047
4148 @Callable(i)
4249 func test5 () = {
4350 let address = toBase58String(i.caller.bytes)
4451 test5h1(address)
4552 }
4653
4754
4855
4956 @Callable(i)
5057 func test6 () = {
5158 let address = toBase58String(i.caller.bytes)
5259 let r = test5h1(address)
5360 throw(address)
5461 }
5562
5663
5764
5865 @Callable(i)
5966 func test7 () = {
6067 let address = toBase58String(i.caller.bytes)
6168 let r = toString(getRandomNumber())
6269 throw(r)
6370 }
6471
6572

github/deemru/w8io/169f3d6 
32.37 ms