tx · CAvRYwaMmE5VPP1wsvGqTC6snf3i3hg9MAFAuqjGCdwE 3N3YZSmRdq9x5EgeziMo3frjzS92sSetxdJ: -0.01000000 Waves 2022.11.21 19:07 [2327093] smart account 3N3YZSmRdq9x5EgeziMo3frjzS92sSetxdJ > SELF 0.00000000 Waves
{ "type": 13, "id": "CAvRYwaMmE5VPP1wsvGqTC6snf3i3hg9MAFAuqjGCdwE", "fee": 1000000, "feeAssetId": null, "timestamp": 1669046865795, "version": 2, "chainId": 84, "sender": "3N3YZSmRdq9x5EgeziMo3frjzS92sSetxdJ", "senderPublicKey": "EFnrjwCCDfBEcxdF1ZQjVvm8hFASxpXvTr3XbdoqivGr", "proofs": [ "3RnVkEt3thyaKobXkuc1yS44PnMwGNWSHJG4fTdKQ3rYBAbzRYactPttQ67cnaTS3mUE8QBwGgj3TMLEG5gaEzA4" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAABWFzc2V0CQAEQwAAAAcCAAAABUFzc2V0AgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAGBQAAAAR1bml0AAAAAAAAAAAABAAAAAdhc3NldElkCQAEOAAAAAEFAAAABWFzc2V0CQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAA2JpbgEAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA3N0cgIAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAAA3N0cgkABEwAAAACBQAAAAVhc3NldAkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAB2Fzc2V0SWQAAAAAAAAAAAEHCQAETAAAAAIJAQAAAARCdXJuAAAAAgUAAAAHYXNzZXRJZAAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAADEazEc", "height": 2327093, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CxwNZPSm6GW5F3hrRJxogFoBsur5RTSmT5ZzWoqWTgyS Next: B6p3aMBzDKh7KtSgzXUP7RhXrGioqc6d4oS7kWJ7WDuK Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let answersCount = 20 | |
5 | - | ||
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."] | |
7 | - | ||
8 | - | func getAnswer (question,previousAnswer) = { | |
9 | - | let hash = sha256(toBytes((question + previousAnswer))) | |
10 | - | let index = toInt(hash) | |
11 | - | answers[(index % answersCount)] | |
12 | - | } | |
13 | - | ||
14 | - | ||
15 | - | func getPreviousAnswer (address) = match getString(this, (address + "_a")) { | |
16 | - | case a: String => | |
17 | - | a | |
18 | - | case _ => | |
19 | - | address | |
20 | - | } | |
21 | 4 | ||
22 | 5 | ||
23 | 6 | @Callable(i) | |
24 | - | func | |
25 | - | let | |
26 | - | let | |
27 | - | ||
7 | + | func call () = { | |
8 | + | let asset = Issue("Asset", "", 1, 0, true, unit, 0) | |
9 | + | let assetId = calculateAssetId(asset) | |
10 | + | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), asset, Reissue(assetId, 1, false), Burn(assetId, 1), ScriptTransfer(i.caller, 1, assetId)] | |
28 | 11 | } | |
29 | 12 | ||
30 | 13 |
github/deemru/w8io/169f3d6 27.30 ms ◑