tx · GaQF6fmcC5ibdAisrsp8GNH2nSh9mbN9MgBwLcUKARSv 3My9uDN1mW9uk1FZXEPGrShd4mue54JXzXU: -0.05000000 Waves 2020.01.17 18:32 [858340] smart account 3My9uDN1mW9uk1FZXEPGrShd4mue54JXzXU > SELF 0.00000000 Waves
{ "type": 13, "id": "GaQF6fmcC5ibdAisrsp8GNH2nSh9mbN9MgBwLcUKARSv", "fee": 5000000, "feeAssetId": null, "timestamp": 1579275115885, "version": 1, "sender": "3My9uDN1mW9uk1FZXEPGrShd4mue54JXzXU", "senderPublicKey": "95WQpA13wTFDDvyMzJM8sjgYqsMxRbJ1J6ECJ3Jn35F4", "proofs": [ "2JvnEdRm7iWPyeJ9c7Ay7YAJeyHLLfz5KXbkD4PERgc4QehGN7LSvAQAr8tr7zzRVZ8s1rijRPUG63ye5xwQWWEE" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAEAAAAAANSU0EJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM015OXVETjFtVzl1azFGWlhFUEdyU2hkNG11ZTU0Slh6WFUAAAAABmtlZXBlcgUAAAADUlNBAAAAAAdhc3NldElkCQACWQAAAAECAAAALDlOc05oOVF6aWZaWDlCVDVTUXhYbUxRRGZMMWhjV1JZNHc3M25lZEpDZTE3AAAAAANwdWIJAQAAABFAZXh0ck5hdGl2ZSgxMDUyKQAAAAIFAAAABmtlZXBlcgIAAAADcHViAAAAAgAAAAFpAQAAAAFmAAAAAAQAAAAEbXNnMAkBAAAAEUBleHRyTmF0aXZlKDEwNTIpAAAAAgUAAAAGa2VlcGVyAgAAAAVtc2dfMAQAAAAEc2lnMAkBAAAAEUBleHRyTmF0aXZlKDEwNTIpAAAAAgUAAAAGa2VlcGVyAgAAAAVzaWdfMAQAAAAEYWRkMAkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkAAMkAAAACBQAAAARtc2cwAAAAAAAAAAAgBAAAAARtc2cx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ZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAARhZGQ2AAAAAAAAAAABBQAAAAdhc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABGFkZDcAAAAAAAAAAAEFAAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAEYWRkOAAAAAAAAAAAAQUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAARhZGQ5AAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAABAAAAAnR4AQAAABBzdGFuZGFyZFZlcmlmaWVyAAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXn5uUT1", "chainId": 84, "height": 858340, "spentComplexity": 0 } View: original | compacted Prev: GiPhqpAKdiNSNUKFwUkUxDeusqajZGgdM4GxdpNQeDY5 Next: 6BkK1Y8ikobVQpZHbuBJLXdQ8DwWTYj8ecd6YChBMU9i Diff:
Old | New | Differences | |
---|---|---|---|
84 | 84 | case _ => | |
85 | 85 | 0 | |
86 | 86 | } | |
87 | - | if ((height > | |
87 | + | if ((height > nStatus)) | |
88 | 88 | then throw("F") | |
89 | - | else ScriptResult(WriteSet([DataEntry(" | |
89 | + | else ScriptResult(WriteSet([DataEntry("status", valid)]), TransferSet([ScriptTransfer(add1, 1, assetId), ScriptTransfer(add2, 1, assetId), ScriptTransfer(add3, 1, assetId), ScriptTransfer(add4, 1, assetId), ScriptTransfer(add5, 1, assetId), ScriptTransfer(add6, 1, assetId), ScriptTransfer(add7, 1, assetId), ScriptTransfer(add8, 1, assetId), ScriptTransfer(add9, 1, assetId)])) | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let RSA = addressFromStringValue("3My9uDN1mW9uk1FZXEPGrShd4mue54JXzXU") | |
5 | 5 | ||
6 | 6 | let keeper = RSA | |
7 | 7 | ||
8 | 8 | let assetId = fromBase58String("9NsNh9QzifZX9BT5SQxXmLQDfL1hcWRY4w73nedJCe17") | |
9 | 9 | ||
10 | 10 | let pub = getBinaryValue(keeper, "pub") | |
11 | 11 | ||
12 | 12 | @Callable(i) | |
13 | 13 | func f () = { | |
14 | 14 | let msg0 = getBinaryValue(keeper, "msg_0") | |
15 | 15 | let sig0 = getBinaryValue(keeper, "sig_0") | |
16 | 16 | let add0 = addressFromPublicKey(take(msg0, 32)) | |
17 | 17 | let msg1 = getBinaryValue(keeper, "msg_1") | |
18 | 18 | let sig1 = getBinaryValue(keeper, "sig_1") | |
19 | 19 | let add1 = addressFromPublicKey(take(msg1, 32)) | |
20 | 20 | let msg2 = getBinaryValue(keeper, "msg_2") | |
21 | 21 | let sig2 = getBinaryValue(keeper, "sig_2") | |
22 | 22 | let add2 = addressFromPublicKey(take(msg2, 32)) | |
23 | 23 | let msg3 = getBinaryValue(keeper, "msg_3") | |
24 | 24 | let sig3 = getBinaryValue(keeper, "sig_3") | |
25 | 25 | let add3 = addressFromPublicKey(take(msg3, 32)) | |
26 | 26 | let msg4 = getBinaryValue(keeper, "msg_4") | |
27 | 27 | let sig4 = getBinaryValue(keeper, "sig_4") | |
28 | 28 | let add4 = addressFromPublicKey(take(msg4, 32)) | |
29 | 29 | let add5 = addressFromPublicKey(take(drop(msg4, 32), 32)) | |
30 | 30 | let add6 = addressFromPublicKey(take(drop(drop(msg4, 32), 32), 32)) | |
31 | 31 | let add7 = addressFromPublicKey(take(drop(drop(drop(msg4, 32), 32), 32), 32)) | |
32 | 32 | let add8 = addressFromPublicKey(take(drop(drop(drop(drop(msg4, 32), 32), 32), 32), 32)) | |
33 | 33 | let add9 = addressFromPublicKey(take(drop(drop(drop(drop(drop(msg4, 32), 32), 32), 32), 32), 32)) | |
34 | 34 | let valid = if (if (if (if (rsaVerify(SHA512, msg0, sig0, pub)) | |
35 | 35 | then rsaVerify(SHA512, msg1, sig1, pub) | |
36 | 36 | else false) | |
37 | 37 | then rsaVerify(SHA512, msg2, sig2, pub) | |
38 | 38 | else false) | |
39 | 39 | then rsaVerify(SHA512, msg3, sig3, pub) | |
40 | 40 | else false) | |
41 | 41 | then rsaVerify(SHA512, msg4, sig4, pub) | |
42 | 42 | else false | |
43 | 43 | if (!(valid)) | |
44 | 44 | then throw("F") | |
45 | 45 | else ScriptResult(WriteSet([DataEntry("STATUS", "DONE")]), TransferSet(nil)) | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | ||
50 | 50 | @Callable(i) | |
51 | 51 | func f1 () = { | |
52 | 52 | let msg0 = getBinaryValue(keeper, "msg_0") | |
53 | 53 | let sig0 = getBinaryValue(keeper, "sig_0") | |
54 | 54 | let add0 = addressFromPublicKey(take(msg0, 32)) | |
55 | 55 | let msg1 = getBinaryValue(keeper, "msg_1") | |
56 | 56 | let sig1 = getBinaryValue(keeper, "sig_1") | |
57 | 57 | let add1 = addressFromPublicKey(take(msg1, 32)) | |
58 | 58 | let msg2 = getBinaryValue(keeper, "msg_2") | |
59 | 59 | let sig2 = getBinaryValue(keeper, "sig_2") | |
60 | 60 | let add2 = addressFromPublicKey(take(msg2, 32)) | |
61 | 61 | let msg3 = getBinaryValue(keeper, "msg_3") | |
62 | 62 | let sig3 = getBinaryValue(keeper, "sig_3") | |
63 | 63 | let add3 = addressFromPublicKey(take(msg3, 32)) | |
64 | 64 | let msg4 = getBinaryValue(keeper, "msg_4") | |
65 | 65 | let sig4 = getBinaryValue(keeper, "sig_4") | |
66 | 66 | let add4 = addressFromPublicKey(take(msg4, 32)) | |
67 | 67 | let add5 = addressFromPublicKey(take(drop(msg4, 32), 32)) | |
68 | 68 | let add6 = addressFromPublicKey(take(drop(drop(msg4, 32), 32), 32)) | |
69 | 69 | let add7 = addressFromPublicKey(take(drop(drop(drop(msg4, 32), 32), 32), 32)) | |
70 | 70 | let add8 = addressFromPublicKey(take(drop(drop(drop(drop(msg4, 32), 32), 32), 32), 32)) | |
71 | 71 | let add9 = addressFromPublicKey(take(drop(drop(drop(drop(drop(msg4, 32), 32), 32), 32), 32), 32)) | |
72 | 72 | let valid = if (if (if (if (rsaVerify(SHA512, msg0, sig0, pub)) | |
73 | 73 | then rsaVerify(SHA512, msg1, sig1, pub) | |
74 | 74 | else false) | |
75 | 75 | then rsaVerify(SHA512, msg2, sig2, pub) | |
76 | 76 | else false) | |
77 | 77 | then rsaVerify(SHA512, msg3, sig3, pub) | |
78 | 78 | else false) | |
79 | 79 | then rsaVerify(SHA512, msg4, sig4, pub) | |
80 | 80 | else false | |
81 | 81 | let nStatus = match getInteger(this, "nstatus") { | |
82 | 82 | case a: Int => | |
83 | 83 | a | |
84 | 84 | case _ => | |
85 | 85 | 0 | |
86 | 86 | } | |
87 | - | if ((height > | |
87 | + | if ((height > nStatus)) | |
88 | 88 | then throw("F") | |
89 | - | else ScriptResult(WriteSet([DataEntry(" | |
89 | + | else ScriptResult(WriteSet([DataEntry("status", valid)]), TransferSet([ScriptTransfer(add1, 1, assetId), ScriptTransfer(add2, 1, assetId), ScriptTransfer(add3, 1, assetId), ScriptTransfer(add4, 1, assetId), ScriptTransfer(add5, 1, assetId), ScriptTransfer(add6, 1, assetId), ScriptTransfer(add7, 1, assetId), ScriptTransfer(add8, 1, assetId), ScriptTransfer(add9, 1, assetId)])) | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Verifier(tx) | |
94 | 94 | func standardVerifier () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
95 | 95 |
github/deemru/w8io/026f985 29.45 ms ◑