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:
Old | New | | Differences |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | | - | func writeScore (json,totalStroke) = { |
---|
| 18 | + | func writeScore (json,totalStroke,timeStamp) = { |
---|
19 | 19 | | let amount = (totalStroke * 100) |
---|
20 | 20 | | 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)] |
---|
22 | 23 | | } |
---|
23 | 24 | | |
---|
24 | 25 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let handicapId = base58'4YcceVpPoC38hnKjHQv9NY1kPxLH2WptnAgko6NhutjZ' |
---|
5 | 5 | | |
---|
6 | 6 | | let scoreId = base58'4YcceVpPoC38hnKjHQv9NY1kPxLH2WptnAgko6NhutjZ' |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func writeHandicap (json,handicapIndex) = { |
---|
10 | 10 | | let amount = (handicapIndex * 100) |
---|
11 | 11 | | let address = toBase58String(i.caller.bytes) |
---|
12 | 12 | | [StringEntry(("handicap_" + address), json), ScriptTransfer(i.caller, amount, handicapId)] |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | | - | func writeScore (json,totalStroke) = { |
---|
| 18 | + | func writeScore (json,totalStroke,timeStamp) = { |
---|
19 | 19 | | let amount = (totalStroke * 100) |
---|
20 | 20 | | 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)] |
---|
22 | 23 | | } |
---|
23 | 24 | | |
---|
24 | 25 | | |
---|
25 | 26 | | @Verifier(tx) |
---|
26 | 27 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 28 | | |
---|