tx · 3QZGSsQ8QTAe4GV6NbzLiFS5ABV7N1b8zamudkxDr9Qb

3Muk1GPkomNgvJoXjF2skX6kdtbHfVocEsA:  -0.01000000 Waves

2024.09.17 20:40 [3287982] smart account 3Muk1GPkomNgvJoXjF2skX6kdtbHfVocEsA > SELF 0.00000000 Waves

{ "type": 13, "id": "3QZGSsQ8QTAe4GV6NbzLiFS5ABV7N1b8zamudkxDr9Qb", "fee": 1000000, "feeAssetId": null, "timestamp": 1726594860814, "version": 2, "chainId": 84, "sender": "3Muk1GPkomNgvJoXjF2skX6kdtbHfVocEsA", "senderPublicKey": "8gKCoForyLqvxCqvBycscb513RqyxtWRvSacYFZJPxma", "proofs": [ "4DZBzZPzRPnEPEGP4DJCGWJRDrdwPuQ6Wgi2LdexqpGTqdC2Q13VJWiWwpQ3ZGVzwA6Pjzg2vkZ8Cqj3CwM2F2U8" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAABgAAAAADU0VQAgAAAAJfXwEAAAAEam9pbgAAAAEAAAAFYXJyYXkJAAS5AAAAAgUAAAAFYXJyYXkFAAAAA1NFUAEAAAAIc2VwYXJhdGUAAAABAAAABnN0cmluZwkABLUAAAACBQAAAAZzdHJpbmcFAAAAA1NFUAEAAAAQY291bnRNZXNzYWdlc0tleQAAAAAJAQAAAARqb2luAAAAAQkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAA1tZXNzYWdzZUNvdW50BQAAAANuaWwBAAAACm1lc3NhZ2VLZXkAAAABAAAACW1lc3NhZ2VJZAkBAAAABGpvaW4AAAABCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAAB21lc3NhZ2UJAARMAAAAAgkAAaQAAAABBQAAAAltZXNzYWdlSWQFAAAAA25pbAEAAAAQZ2V0Q291bnRNZXNzYWdlcwAAAAAEAAAAByRtYXRjaDAJAAQfAAAAAQkBAAAAEGNvdW50TWVzc2FnZXNLZXkAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWkFAAAAByRtYXRjaDAFAAAAAWkAAAAAAAAAAAAAAAABAAAAAWkBAAAABHNlbmQAAAABAAAAB21lc3NhZ2UEAAAADWNvdW50TWVzc2FnZXMJAQAAABBnZXRDb3VudE1lc3NhZ2VzAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAKbWVzc2FnZUtleQAAAAEFAAAADWNvdW50TWVzc2FnZXMJAQAAAARqb2luAAAAAQkABEwAAAACBQAAAAdtZXNzYWdlCQAETAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wBQAAAANuaWwJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAABBjb3VudE1lc3NhZ2VzS2V5AAAAAAkAAGQAAAACBQAAAA1jb3VudE1lc3NhZ2VzAAAAAAAAAAABBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlefl6hfY=", "height": 3287982, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2KHCxaY8mHYr7UChAoi2ZNsS14m1RgaodxrRejMdyhYf Next: BHRWP3Zs5dsBREWGhhqSYxmNVguAZNdejJHxdtzsKWgB Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
6-let reputationAsset = base58'6XJAscmejGPTLAdKsg12MynB5rNQzNiZz8Yj81SWeFrj'
6+func join (array) = makeString(array, SEP)
77
8-let proposalTime = ((((1000 * 60) * 60) * 24) * 3)
98
10-func issueBond (title,text,timestampCreation,countVotesFor,CountVotesAgainst,finalized) = StringEntry("", "")
9+func separate (string) = split(string, SEP)
1110
11+
12+func countMessagesKey () = join(["%s", "messagseCount"])
13+
14+
15+func messageKey (messageId) = join(["%s", "message", toString(messageId)])
16+
17+
18+func getCountMessages () = match getInteger(countMessagesKey()) {
19+ case i: Int =>
20+ i
21+ case _ =>
22+ 0
23+}
24+
25+
26+@Callable(i)
27+func send (message) = {
28+ let countMessages = getCountMessages()
29+[StringEntry(messageKey(countMessages), join([message, toBase58String(i.caller.bytes), toString(lastBlock.timestamp)])), IntegerEntry(countMessagesKey(), (countMessages + 1))]
30+ }
1231
1332
1433 @Verifier(tx)
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
6-let reputationAsset = base58'6XJAscmejGPTLAdKsg12MynB5rNQzNiZz8Yj81SWeFrj'
6+func join (array) = makeString(array, SEP)
77
8-let proposalTime = ((((1000 * 60) * 60) * 24) * 3)
98
10-func issueBond (title,text,timestampCreation,countVotesFor,CountVotesAgainst,finalized) = StringEntry("", "")
9+func separate (string) = split(string, SEP)
1110
11+
12+func countMessagesKey () = join(["%s", "messagseCount"])
13+
14+
15+func messageKey (messageId) = join(["%s", "message", toString(messageId)])
16+
17+
18+func getCountMessages () = match getInteger(countMessagesKey()) {
19+ case i: Int =>
20+ i
21+ case _ =>
22+ 0
23+}
24+
25+
26+@Callable(i)
27+func send (message) = {
28+ let countMessages = getCountMessages()
29+[StringEntry(messageKey(countMessages), join([message, toBase58String(i.caller.bytes), toString(lastBlock.timestamp)])), IntegerEntry(countMessagesKey(), (countMessages + 1))]
30+ }
1231
1332
1433 @Verifier(tx)
1534 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1635

github/deemru/w8io/026f985 
35.25 ms