tx · HV6jjsGdcS8TbPvEi5tivZMvGmPhjDmPMzSCxQydDN2E

3MsGaPwSZGbRkHeU5kYsEFJCX4PPujd5SJ7:  -0.01000000 Waves

2021.09.23 22:55 [1716157] smart account 3MsGaPwSZGbRkHeU5kYsEFJCX4PPujd5SJ7 > SELF 0.00000000 Waves

{ "type": 13, "id": "HV6jjsGdcS8TbPvEi5tivZMvGmPhjDmPMzSCxQydDN2E", "fee": 1000000, "feeAssetId": null, "timestamp": 1632426940300, "version": 1, "sender": "3MsGaPwSZGbRkHeU5kYsEFJCX4PPujd5SJ7", "senderPublicKey": "8bucJnjo1rN155Zycpsunmsw9y98tqwuFbimJV4onPSe", "proofs": [ "3retNHbBf3T1WdWM5uJjuUCNLoJdWKQ3bgF3NWwx2juUaag2ziRDdNxoDg223C2N1MjcBfs88dP9ZSxs6mh6jJnB" ], "script": "base64:AAIFAAAAAAAAAA0IAhIDCgEBEgQKAggBAAAAAAAAAAIAAAABaQEAAAAIZGF0YWJhc2UAAAABAAAABXZhbHVlBAAAAARiYXNlCQACWAAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABGJhc2UFAAAABGJhc2UFAAAABGJhc2UFAAAABGJhc2UFAAAABGJhc2UJAAEvAAAAAgUAAAAEYmFzZQAAAAAAAAAAIAQAAAAEY2FsbAkAA/wAAAAEBQAAAAR0aGlzAgAAAAhrZXl2YWx1ZQkABEwAAAACBQAAAANrZXkJAARMAAAAAgkAAGUAAAACBQAAAAV2YWx1ZQAAAAAAAAAAAQUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAABGNhbGwFAAAABGNhbGwFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAIa2V5dmFsdWUAAAACAAAAA2tleQAAAAV2YWx1ZQMJAABmAAAAAgUAAAAFdmFsdWUAAAAAAAAAAAAEAAAAAnJuCQAD/AAAAAQFAAAABHRoaXMCAAAACGtleXZhbHVlCQAETAAAAAIFAAAAA2tleQkABEwAAAACCQAAZQAAAAIFAAAABXZhbHVlAAAAAAAAAAABBQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAACcm4FAAAAAnJuCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIJAAGkAAAAAQkAAGQAAAACAAAAAAAAAABkBQAAAAV2YWx1ZQUAAAADa2V5BgUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkAASwAAAACCQABpAAAAAEAAAAAAAAAAGQFAAAAA2tleQYFAAAAA25pbAAAAABsAG26", "chainId": 84, "height": 1716157, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C47uGo41NXbpZiHS4nw4zcia8qriPYstt3hByTXGkCsV Next: Bo5DR168A5ahqMVQWwzYRxH6YEZ34ZjmjQ64vb3nykFc Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func database () = {
7+func database (value) = {
88 let base = toBase58String(i.transactionId)
9- let kbase = (((((base + base) + base) + base) + base) + take(base, 32))
10- let knum = 100
11-[BooleanEntry((toString(knum) + kbase), true)]
9+ let key = (((((base + base) + base) + base) + base) + take(base, 32))
10+ let call = invoke(this, "keyvalue", [key, (value - 1)], nil)
11+ if ((call == call))
12+ then nil
13+ else throw("Strict value is not equal to itself.")
1214 }
15+
16+
17+
18+@Callable(i)
19+func keyvalue (key,value) = if ((value > 0))
20+ then {
21+ let rn = invoke(this, "keyvalue", [key, (value - 1)], nil)
22+ if ((rn == rn))
23+ then [BooleanEntry((toString((100 + value)) + key), true)]
24+ else throw("Strict value is not equal to itself.")
25+ }
26+ else [BooleanEntry((toString(100) + key), true)]
1327
1428
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func database () = {
7+func database (value) = {
88 let base = toBase58String(i.transactionId)
9- let kbase = (((((base + base) + base) + base) + base) + take(base, 32))
10- let knum = 100
11-[BooleanEntry((toString(knum) + kbase), true)]
9+ let key = (((((base + base) + base) + base) + base) + take(base, 32))
10+ let call = invoke(this, "keyvalue", [key, (value - 1)], nil)
11+ if ((call == call))
12+ then nil
13+ else throw("Strict value is not equal to itself.")
1214 }
15+
16+
17+
18+@Callable(i)
19+func keyvalue (key,value) = if ((value > 0))
20+ then {
21+ let rn = invoke(this, "keyvalue", [key, (value - 1)], nil)
22+ if ((rn == rn))
23+ then [BooleanEntry((toString((100 + value)) + key), true)]
24+ else throw("Strict value is not equal to itself.")
25+ }
26+ else [BooleanEntry((toString(100) + key), true)]
1327
1428

github/deemru/w8io/169f3d6 
25.71 ms