tx · D8e5ysgViq8LhWELZPjx8AsTKTEesioonMcP7m7Pzhq5
3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9: -0.01400000 Waves
2021.04.15 03:49 [1482853] smart account 3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "D8e5ysgViq8LhWELZPjx8AsTKTEesioonMcP7m7Pzhq5",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1618447766865,
"version": 2,
"chainId": 84,
"sender": "3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9",
"senderPublicKey": "4c4UBd9NA6MRSQodQ87kJmgeRXNpFLbARj27ybkF3f78",
"proofs": [
"24iah8NP9MPJrAqXtUYY5yGNZWnjRUf5i6KfMK8nXSuHSXxUsYuHtu99KER79qWRJTKW9iaADcFkxwxBCVLt4Kut"
],
"script": "base64:AAIEAAAAAAAAABEIAhIECgIIARIHCgUICAgBAQAAAAIAAAAACmhhbmRpY2FwSWQBAAAAIDSsVd2AOHh32S18jBWo19f9XCumvQWu0kMwmD8lVgfQAAAAAAdzY29yZUlkAQAAACA0rFXdgDh4d9ktfIwVqNfX/Vwrpr0FrtJDMJg/JVYH0AAAAAIAAAABaQEAAAANd3JpdGVIYW5kaWNhcAAAAAIAAAAEanNvbgAAAA1oYW5kaWNhcEluZGV4BAAAAAZhbW91bnQJAABoAAAAAgUAAAANaGFuZGljYXBJbmRleAAAAAAAAAAAZAQAAAAHYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAJaGFuZGljYXBfBQAAAAdhZGRyZXNzBQAAAARqc29uCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAApoYW5kaWNhcElkBQAAAANuaWwAAAABaQEAAAAKd3JpdGVTY29yZQAAAAUAAAAKY291cnNlanNvbgAAAAlzY29yZWpzb24AAAANY29uZGl0aW9uanNvbgAAAAt0b3RhbFN0cm9rZQAAAAl0aW1lU3RhbXAEAAAABmFtb3VudAkAAGgAAAACBQAAAAt0b3RhbFN0cm9rZQAAAAAAAAAAZAQAAAAHYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAl0aW1lc3RhbXAJAAGkAAAAAQUAAAAJdGltZVN0YW1wCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAA1yb3VuZF9jb3Vyc2VfBQAAAAl0aW1lc3RhbXAFAAAAB2FkZHJlc3MFAAAACmNvdXJzZWpzb24JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAADHJvdW5kX3Njb3JlXwUAAAAJdGltZXN0YW1wBQAAAAdhZGRyZXNzBQAAAAlzY29yZWpzb24JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAAEHJvdW5kX2NvbmRpdGlvbl8FAAAACXRpbWVzdGFtcAUAAAAHYWRkcmVzcwUAAAANY29uZGl0aW9uanNvbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAUAAAAHc2NvcmVJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkNI7oF",
"height": 1482853,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: FHhg3HSBs4B4SaAWYy8mKqSeSbURn8j8H2uF8twuZfTm
Next: Cf565ZPkDe3u34XbcWS25rv55ooK6YxxGQ843Cs48jSu
Diff:
Old | New | | Differences |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | | - | func writeScore (json,totalStroke,timeStamp) = { |
---|
| 18 | + | func writeScore (coursejson,scorejson,conditionjson,totalStroke,timeStamp) = { |
---|
19 | 19 | | let amount = (totalStroke * 100) |
---|
20 | 20 | | let address = toBase58String(i.caller.bytes) |
---|
21 | 21 | | let timestamp = toString(timeStamp) |
---|
22 | | - | [StringEntry((("score_" + timestamp) + address), json), ScriptTransfer(i.caller, amount, scoreId)] |
---|
| 22 | + | [StringEntry((("round_course_" + timestamp) + address), coursejson), StringEntry((("round_score_" + timestamp) + address), scorejson), StringEntry((("round_condition_" + timestamp) + address), conditionjson), ScriptTransfer(i.caller, amount, scoreId)] |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 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,timeStamp) = { |
---|
| 18 | + | func writeScore (coursejson,scorejson,conditionjson,totalStroke,timeStamp) = { |
---|
19 | 19 | | let amount = (totalStroke * 100) |
---|
20 | 20 | | let address = toBase58String(i.caller.bytes) |
---|
21 | 21 | | let timestamp = toString(timeStamp) |
---|
22 | | - | [StringEntry((("score_" + timestamp) + address), json), ScriptTransfer(i.caller, amount, scoreId)] |
---|
| 22 | + | [StringEntry((("round_course_" + timestamp) + address), coursejson), StringEntry((("round_score_" + timestamp) + address), scorejson), StringEntry((("round_condition_" + timestamp) + address), conditionjson), ScriptTransfer(i.caller, amount, scoreId)] |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @Verifier(tx) |
---|
27 | 27 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
28 | 28 | | |
---|