tx · FHhg3HSBs4B4SaAWYy8mKqSeSbURn8j8H2uF8twuZfTm

3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9:  -0.01400000 Waves

2021.04.14 21:31 [1482483] smart account 3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9 > SELF 0.00000000 Waves

{ "type": 13, "id": "FHhg3HSBs4B4SaAWYy8mKqSeSbURn8j8H2uF8twuZfTm", "fee": 1400000, "feeAssetId": null, "timestamp": 1618425194436, "version": 2, "chainId": 84, "sender": "3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9", "senderPublicKey": "4c4UBd9NA6MRSQodQ87kJmgeRXNpFLbARj27ybkF3f78", "proofs": [ "3Jov4zPKG8HkzctqYUCwAvoH9eBM8YdHxJveRpJhPcMTgwuqwbaWfYFsGAv5Zq8xTDgyCXKZsdfsa71x5jwp3UQA" ], "script": "base64:AAIEAAAAAAAAAA8IAhIECgIIARIFCgMIAQEAAAACAAAAAApoYW5kaWNhcElkAQAAACA0rFXdgDh4d9ktfIwVqNfX/Vwrpr0FrtJDMJg/JVYH0AAAAAAHc2NvcmVJZAEAAAAgNKxV3YA4eHfZLXyMFajX1/1cK6a9Ba7SQzCYPyVWB9AAAAACAAAAAWkBAAAADXdyaXRlSGFuZGljYXAAAAACAAAABGpzb24AAAANaGFuZGljYXBJbmRleAQAAAAGYW1vdW50CQAAaAAAAAIFAAAADWhhbmRpY2FwSW5kZXgAAAAAAAAAAGQEAAAAB2FkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACWhhbmRpY2FwXwUAAAAHYWRkcmVzcwUAAAAEanNvbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAUAAAAKaGFuZGljYXBJZAUAAAADbmlsAAAAAWkBAAAACndyaXRlU2NvcmUAAAADAAAABGpzb24AAAALdG90YWxTdHJva2UAAAAJdGltZVN0YW1wBAAAAAZhbW91bnQJAABoAAAAAgUAAAALdG90YWxTdHJva2UAAAAAAAAAAGQEAAAAB2FkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAJdGltZXN0YW1wCQABpAAAAAEFAAAACXRpbWVTdGFtcAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGc2NvcmVfBQAAAAl0aW1lc3RhbXAFAAAAB2FkZHJlc3MFAAAABGpzb24JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQFAAAAB3Njb3JlSWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5mF4Nnw==", "height": 1482483, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3kmz5wQXV1PX5RZ7nBknCwZqBWVFuAkkSswCBqiCHctJ Next: D8e5ysgViq8LhWELZPjx8AsTKTEesioonMcP7m7Pzhq5 Diff:
OldNewDifferences
1515
1616
1717 @Callable(i)
18-func writeScore (json,totalStroke) = {
18+func writeScore (json,totalStroke,timeStamp) = {
1919 let amount = (totalStroke * 100)
2020 let address = toBase58String(i.caller.bytes)
21-[StringEntry(("score_" + address), json), ScriptTransfer(i.caller, amount, scoreId)]
21+ let timestamp = toString(timeStamp)
22+[StringEntry((("score_" + timestamp) + address), json), ScriptTransfer(i.caller, amount, scoreId)]
2223 }
2324
2425
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let handicapId = base58'4YcceVpPoC38hnKjHQv9NY1kPxLH2WptnAgko6NhutjZ'
55
66 let scoreId = base58'4YcceVpPoC38hnKjHQv9NY1kPxLH2WptnAgko6NhutjZ'
77
88 @Callable(i)
99 func writeHandicap (json,handicapIndex) = {
1010 let amount = (handicapIndex * 100)
1111 let address = toBase58String(i.caller.bytes)
1212 [StringEntry(("handicap_" + address), json), ScriptTransfer(i.caller, amount, handicapId)]
1313 }
1414
1515
1616
1717 @Callable(i)
18-func writeScore (json,totalStroke) = {
18+func writeScore (json,totalStroke,timeStamp) = {
1919 let amount = (totalStroke * 100)
2020 let address = toBase58String(i.caller.bytes)
21-[StringEntry(("score_" + address), json), ScriptTransfer(i.caller, amount, scoreId)]
21+ let timestamp = toString(timeStamp)
22+[StringEntry((("score_" + timestamp) + address), json), ScriptTransfer(i.caller, amount, scoreId)]
2223 }
2324
2425
2526 @Verifier(tx)
2627 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2728

github/deemru/w8io/169f3d6 
40.82 ms