tx · 3kmz5wQXV1PX5RZ7nBknCwZqBWVFuAkkSswCBqiCHctJ 3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9: -0.01000000 Waves 2021.04.14 20:20 [1482409] smart account 3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9 > SELF 0.00000000 Waves
{ "type": 13, "id": "3kmz5wQXV1PX5RZ7nBknCwZqBWVFuAkkSswCBqiCHctJ", "fee": 1000000, "feeAssetId": null, "timestamp": 1618420933465, "version": 2, "chainId": 84, "sender": "3Mq7NQbKZ2JrQZvvYjw7pbno1rrPKef9jZ9", "senderPublicKey": "4c4UBd9NA6MRSQodQ87kJmgeRXNpFLbARj27ybkF3f78", "proofs": [ "59sExTFJ2phbgmrxGRZhP5oMDFBq7WrWkbXnupZXamXu7Cm8maeoVaD1wCpjqY8TX1H1ygahQEzqypqqSRRbU65T" ], "script": "base64:AAIEAAAAAAAAAA4IAhIECgIIARIECgIIAQAAAAIAAAAACmhhbmRpY2FwSWQBAAAAIDSsVd2AOHh32S18jBWo19f9XCumvQWu0kMwmD8lVgfQAAAAAAdzY29yZUlkAQAAACA0rFXdgDh4d9ktfIwVqNfX/Vwrpr0FrtJDMJg/JVYH0AAAAAIAAAABaQEAAAANd3JpdGVIYW5kaWNhcAAAAAIAAAAEanNvbgAAAA1oYW5kaWNhcEluZGV4BAAAAAZhbW91bnQJAABoAAAAAgUAAAANaGFuZGljYXBJbmRleAAAAAAAAAAAZAQAAAAHYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAJaGFuZGljYXBfBQAAAAdhZGRyZXNzBQAAAARqc29uCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAApoYW5kaWNhcElkBQAAAANuaWwAAAABaQEAAAAKd3JpdGVTY29yZQAAAAIAAAAEanNvbgAAAAt0b3RhbFN0cm9rZQQAAAAGYW1vdW50CQAAaAAAAAIFAAAAC3RvdGFsU3Ryb2tlAAAAAAAAAABkBAAAAAdhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAAZzY29yZV8FAAAAB2FkZHJlc3MFAAAABGpzb24JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQFAAAAB3Njb3JlSWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5MflQbA==", "height": 1482409, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: FHhg3HSBs4B4SaAWYy8mKqSeSbURn8j8H2uF8twuZfTm Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let handicapId = base58'4YcceVpPoC38hnKjHQv9NY1kPxLH2WptnAgko6NhutjZ' | |
5 | + | ||
6 | + | let scoreId = base58'4YcceVpPoC38hnKjHQv9NY1kPxLH2WptnAgko6NhutjZ' | |
7 | + | ||
8 | + | @Callable(i) | |
9 | + | func writeHandicap (json,handicapIndex) = { | |
10 | + | let amount = (handicapIndex * 100) | |
11 | + | let address = toBase58String(i.caller.bytes) | |
12 | + | [StringEntry(("handicap_" + address), json), ScriptTransfer(i.caller, amount, handicapId)] | |
13 | + | } | |
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | @Callable(i) | |
18 | + | func writeScore (json,totalStroke) = { | |
19 | + | let amount = (totalStroke * 100) | |
20 | + | let address = toBase58String(i.caller.bytes) | |
21 | + | [StringEntry(("score_" + address), json), ScriptTransfer(i.caller, amount, scoreId)] | |
22 | + | } | |
23 | + | ||
24 | + | ||
25 | + | @Verifier(tx) | |
26 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | + |
github/deemru/w8io/169f3d6 37.23 ms ◑