tx · 4TuRZi962oQUBdsActLjE8FET9NcbFf7AShvd5U3pQCM
3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9: -0.01400000 Waves
2021.04.16 09:09 [1484622] smart account 3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "4TuRZi962oQUBdsActLjE8FET9NcbFf7AShvd5U3pQCM",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1618553397683,
"version": 2,
"chainId": 84,
"sender": "3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9",
"senderPublicKey": "4c4UBd9NA6MRSQodQ87kJmgeRXNpFLbARj27ybkF3f78",
"proofs": [
"CiRK9SJ4skHo6x1toPFAY1ivuxookSvUsrvjyr2vkRwucqYEqd9LSMkHqhQJ9K6o1R1d2i8juXRvFLq11hXX6Yw"
],
"script": "base64:AAIEAAAAAAAAABYIAhIJCgcICAgIAQEBEgcKBQgICAEBAAAAAgAAAAAKaGFuZGljYXBJZAEAAAAgNKxV3YA4eHfZLXyMFajX1/1cK6a9Ba7SQzCYPyVWB9AAAAAAB3Njb3JlSWQBAAAAIMB3v52c8JrXTpm26lUxmUG2pEZncDNRr0ywrr8kX11wAAAAAgAAAAFpAQAAAA93cml0ZVNjb3JlSGFuZGkAAAAHAAAACmNvdXJzZWpzb24AAAAJc2NvcmVqc29uAAAADWNvbmRpdGlvbmpzb24AAAAMaGFuZGljYXBqc29uAAAAC3RvdGFsU3Ryb2tlAAAADWhhbmRpY2FwSW5kZXgAAAAJdGltZVN0YW1wBAAAAAtzY29yZUFtb3VudAkAAGgAAAACBQAAAAt0b3RhbFN0cm9rZQAAAAAAAAAAZAQAAAAOaGFuZGljYXBBbW91bnQJAABoAAAAAgUAAAANaGFuZGljYXBJbmRleAAAAAAAAAAAZAQAAAAHYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAl0aW1lc3RhbXA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AkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAANcm91bmRfY291cnNlXwUAAAAJdGltZXN0YW1wBQAAAAdhZGRyZXNzBQAAAApjb3Vyc2Vqc29uCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxyb3VuZF9zY29yZV8FAAAACXRpbWVzdGFtcAUAAAAHYWRkcmVzcwUAAAAJc2NvcmVqc29uCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAABByb3VuZF9jb25kaXRpb25fBQAAAAl0aW1lc3RhbXAFAAAAB2FkZHJlc3MFAAAADWNvbmRpdGlvbmpzb24JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQFAAAAB3Njb3JlSWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5RTNjJg==",
"height": 1484622,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HcTdVmtJqabG42whTB6rKH3tQUxsesWzUBjxnaQaHkU1
Next: none
Diff:
Old | New | | Differences |
---|
11 | 11 | | let handicapAmount = (handicapIndex * 100) |
---|
12 | 12 | | let address = toBase58String(i.caller.bytes) |
---|
13 | 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)] |
---|
| 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, handicapId)] |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
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'DxKBgUmydyWj1Rdk2qLeq238gvg4LM9aSL2ZKoEzBkWK' |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func writeScoreHandi (coursejson,scorejson,conditionjson,handicapjson,totalStroke,handicapIndex,timeStamp) = { |
---|
10 | 10 | | let scoreAmount = (totalStroke * 100) |
---|
11 | 11 | | let handicapAmount = (handicapIndex * 100) |
---|
12 | 12 | | let address = toBase58String(i.caller.bytes) |
---|
13 | 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)] |
---|
| 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, handicapId)] |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(i) |
---|
20 | 20 | | func writeScore (coursejson,scorejson,conditionjson,totalStroke,timeStamp) = { |
---|
21 | 21 | | let amount = (totalStroke * 100) |
---|
22 | 22 | | let address = toBase58String(i.caller.bytes) |
---|
23 | 23 | | let timestamp = toString(timeStamp) |
---|
24 | 24 | | [StringEntry((("round_course_" + timestamp) + address), coursejson), StringEntry((("round_score_" + timestamp) + address), scorejson), StringEntry((("round_condition_" + timestamp) + address), conditionjson), ScriptTransfer(i.caller, amount, scoreId)] |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | 28 | | @Verifier(tx) |
---|
29 | 29 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
30 | 30 | | |
---|