tx · Cf565ZPkDe3u34XbcWS25rv55ooK6YxxGQ843Cs48jSu 3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9: -0.01400000 Waves 2021.04.15 05:23 [1482952] smart account 3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9 > SELF 0.00000000 Waves
{ "type": 13, "id": "Cf565ZPkDe3u34XbcWS25rv55ooK6YxxGQ843Cs48jSu", "fee": 1400000, "feeAssetId": null, "timestamp": 1618453383509, "version": 2, "chainId": 84, "sender": "3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9", "senderPublicKey": "4c4UBd9NA6MRSQodQ87kJmgeRXNpFLbARj27ybkF3f78", "proofs": [ "2xDne1158Yb89VrTAbR2JFYL3JUtq71Pd9eJujysdhU3rrF9kSCX6nVb7k44HpeqDs8HEYqwrmpgBM2q43BjBfHc" ], "script": "base64:AAIEAAAAAAAAABYIAhIJCgcICAgIAQEBEgcKBQgICAEBAAAAAgAAAAAKaGFuZGljYXBJZAEAAAAgNKxV3YA4eHfZLXyMFajX1/1cK6a9Ba7SQzCYPyVWB9AAAAAAB3Njb3JlSWQBAAAAIDSsVd2AOHh32S18jBWo19f9XCumvQWu0kMwmD8lVgfQAAAAAgAAAAFpAQAAAA93cml0ZVNjb3JlSGFuZGkAAAAHAAAACmNvdXJzZWpzb24AAAAJc2NvcmVqc29uAAAADWNvbmRpdGlvbmpzb24AAAAMaGFuZGljYXBqc29uAAAAC3RvdGFsU3Ryb2tlAAAADWhhbmRpY2FwSW5kZXgAAAAJdGltZVN0YW1wBAAAAAtzY29yZUFtb3VudAkAAGgAAAACBQAAAAt0b3RhbFN0cm9rZQAAAAAAAAAAZAQAAAAOaGFuZGljYXBBbW91bnQJAABoAAAAAgUAAAANaGFuZGljYXBJbmRleAAAAAAAAAAAZAQAAAAHYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAl0aW1lc3RhbXAJAAGkAAAA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AAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAANcm91bmRfY291cnNlXwUAAAAJdGltZXN0YW1wBQAAAAdhZGRyZXNzBQAAAApjb3Vyc2Vqc29uCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxyb3VuZF9zY29yZV8FAAAACXRpbWVzdGFtcAUAAAAHYWRkcmVzcwUAAAAJc2NvcmVqc29uCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAABByb3VuZF9jb25kaXRpb25fBQAAAAl0aW1lc3RhbXAFAAAAB2FkZHJlc3MFAAAADWNvbmRpdGlvbmpzb24JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQFAAAAB3Njb3JlSWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V59QzdEA==", "height": 1482952, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D8e5ysgViq8LhWELZPjx8AsTKTEesioonMcP7m7Pzhq5 Next: HcTdVmtJqabG42whTB6rKH3tQUxsesWzUBjxnaQaHkU1 Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | let scoreId = base58'4YcceVpPoC38hnKjHQv9NY1kPxLH2WptnAgko6NhutjZ' | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | - | func writeHandicap (json,handicapIndex) = { | |
10 | - | let amount = (handicapIndex * 100) | |
9 | + | func writeScoreHandi (coursejson,scorejson,conditionjson,handicapjson,totalStroke,handicapIndex,timeStamp) = { | |
10 | + | let scoreAmount = (totalStroke * 100) | |
11 | + | let handicapAmount = (handicapIndex * 100) | |
11 | 12 | let address = toBase58String(i.caller.bytes) | |
12 | - | [StringEntry(("handicap_" + address), json), ScriptTransfer(i.caller, amount, handicapId)] | |
13 | + | let timestamp = toString(timeStamp) | |
14 | + | [StringEntry((("round_course_" + timestamp) + address), coursejson), StringEntry((("round_score_" + timestamp) + address), scorejson), StringEntry((("round_condition_" + timestamp) + address), conditionjson), StringEntry(("handicap_index_" + address), handicapjson), ScriptTransfer(i.caller, scoreAmount, scoreId), ScriptTransfer(i.caller, handicapAmount, scoreId)] | |
13 | 15 | } | |
14 | 16 | ||
15 | 17 |
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 | - | func writeHandicap (json,handicapIndex) = { | |
10 | - | let amount = (handicapIndex * 100) | |
9 | + | func writeScoreHandi (coursejson,scorejson,conditionjson,handicapjson,totalStroke,handicapIndex,timeStamp) = { | |
10 | + | let scoreAmount = (totalStroke * 100) | |
11 | + | let handicapAmount = (handicapIndex * 100) | |
11 | 12 | let address = toBase58String(i.caller.bytes) | |
12 | - | [StringEntry(("handicap_" + address), json), ScriptTransfer(i.caller, amount, handicapId)] | |
13 | + | let timestamp = toString(timeStamp) | |
14 | + | [StringEntry((("round_course_" + timestamp) + address), coursejson), StringEntry((("round_score_" + timestamp) + address), scorejson), StringEntry((("round_condition_" + timestamp) + address), conditionjson), StringEntry(("handicap_index_" + address), handicapjson), ScriptTransfer(i.caller, scoreAmount, scoreId), ScriptTransfer(i.caller, handicapAmount, scoreId)] | |
13 | 15 | } | |
14 | 16 | ||
15 | 17 | ||
16 | 18 | ||
17 | 19 | @Callable(i) | |
18 | 20 | func writeScore (coursejson,scorejson,conditionjson,totalStroke,timeStamp) = { | |
19 | 21 | let amount = (totalStroke * 100) | |
20 | 22 | let address = toBase58String(i.caller.bytes) | |
21 | 23 | let timestamp = toString(timeStamp) | |
22 | 24 | [StringEntry((("round_course_" + timestamp) + address), coursejson), StringEntry((("round_score_" + timestamp) + address), scorejson), StringEntry((("round_condition_" + timestamp) + address), conditionjson), ScriptTransfer(i.caller, amount, scoreId)] | |
23 | 25 | } | |
24 | 26 | ||
25 | 27 | ||
26 | 28 | @Verifier(tx) | |
27 | 29 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
28 | 30 |
github/deemru/w8io/169f3d6 22.58 ms ◑