tx · 6eH77p97EDEynvZ3zA82KohXMK5M79Wy8moKXr6K3tUn

3MxBZbnN8Z8sbYjjL5N3oG5C8nWq9NMeCEm:  -0.01000000 Waves

2021.09.13 18:34 [1701459] smart account 3MxBZbnN8Z8sbYjjL5N3oG5C8nWq9NMeCEm > SELF 0.00000000 Waves

{ "type": 13, "id": "6eH77p97EDEynvZ3zA82KohXMK5M79Wy8moKXr6K3tUn", "fee": 1000000, "feeAssetId": null, "timestamp": 1631547304508, "version": 2, "chainId": 84, "sender": "3MxBZbnN8Z8sbYjjL5N3oG5C8nWq9NMeCEm", "senderPublicKey": "Fzb2pKuqw3RczsDTEvYGoGgQopvSjQauWgeo5eCLn1Ma", "proofs": [ "4qYUR3tcD6EtaYFAiHB8ThR74Rte7WUKYBzLCXsV8yfdDFsAZyFiGttadrERtCuD9TsuRUytcJUfY9uB9TfAAguL" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAAAAAAAgAAAAFpAQAAAANmb28AAAAABAAAAAFkCQAD/AAAAAQFAAAABHRoaXMFAAAABHVuaXQFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAFkBQAAAAFkBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAWkBAAAAB2RlZmF1bHQAAAAACQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAA2JpbgEAAAAGASmhAx9XCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA3N0cgIAAAAEdGVzdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUWq55F5ToTgKri+zsyjHL6mof9xsSyNPSAAAAAAAAAAABBQAAAAR1bml0BQAAAANuaWwAAAAADuS8KQ==", "height": 1701459, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G6UFkDNQpz4J6bsdKyEyt1JqucC4fEbCkg4LGDinWZYd Next: FgU29UthxsSzZqdsgSxXcDkxEUnociexkvEWrrBz833s Full:
OldNewDifferences
1-{-# STDLIB_VERSION 3 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let answersCount = 20
54
6-let answers = ["It is certain.", "It is decidedly so.", "Without a doubt.", "Yes - definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.", "Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try again.", "Ask again later.", "Better not tell you now.", "Cannot predict now.", "Concentrate and ask again.", "Don't count on it.", "My reply is no.", "My sources say no.", "Outlook not so good.", "Very doubtful."]
75
8-func getAnswer (question,previousAnswer) = {
9- let hash = sha256(toBytes((question + previousAnswer)))
10- let index = toInt(hash)
11-answers[(index % answersCount)]
6+@Callable(i)
7+func foo () = {
8+ let d = invoke(this, unit, nil, nil)
9+ if ((d == d))
10+ then nil
11+ else throw("Strict value is not equal to itself.")
1212 }
1313
1414
15-func getPreviousAnswer (address) = match getString(this, (address + "_a")) {
16- case a: String =>
17- a
18- case _ =>
19- address
20-}
21-
2215
2316 @Callable(i)
24-func tellme (question) = {
25- let callerAddress = toBase58String(i.caller.bytes)
26- let answer = getAnswer(question, getPreviousAnswer(callerAddress))
27- WriteSet([DataEntry((callerAddress + "_q"), question), DataEntry((callerAddress + "_a"), answer)])
28- }
17+func default () = [BinaryEntry("bin", base58'aaaaaaa'), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", "test"), ScriptTransfer(Address(base58'3MxBZbnN8Z8sbYjjL5N3oG5C8nWq9NMeCEm'), 1, unit)]
2918
3019

github/deemru/w8io/169f3d6 
24.97 ms