tx · CoQ8oyvoWHxTRqpaRUnTkkbJ9JwsVZQ28iC6v2r1HV2n 3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP: -0.01400000 Waves 2019.07.11 10:49 [580754] smart account 3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP > SELF 0.00000000 Waves
{ "type": 13, "id": "CoQ8oyvoWHxTRqpaRUnTkkbJ9JwsVZQ28iC6v2r1HV2n", "fee": 1400000, "feeAssetId": null, "timestamp": 1562831408732, "version": 1, "sender": "3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP", "senderPublicKey": "EghK1ndUequAR8FfFYnK6itzJoz6XBXuBwJ9R2NBtRS4", "proofs": [ "4qoV72kcPqGUjuTe3rF6p1XcC6Uq4LJJQexQEdcUXVJbKTYQr8ujdVgJXo3U8X1UKaiccnAwZzPjeE7w8ckb79D1" ], "script": "base64:AAIDAAAAAAAAAAAAAAAIAAAAAAthbGljZVB1YktleQEAAAAgOITRcCoKNTKqAsbsI7JcjEyc+1VR5mMOpsGoUi0JKjkAAAAACWJvYlB1YktleQEAAAAgOPBOW6N2bmWmpMd/LMXIwkA2OIUQhWJH019Pc7tgpSMAAAAADGNvb3BlclB1YktleQEAAAAgy1MpMZp8+4hN9rmZPzVtqBXPXqzIJa0q68vtAj5jLAUAAAAAC290aGVyUHViS2V5AQAAACCcUW8jVT9kpF19g4OlKJR98WVU6DO1nDSGe47M+HtjPwEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQAAAARpdGVtCQABLAAAAAIFAAAABGl0ZW0CAAAAEF92ZXJpZmllcl9zdGF0dXMAAAAACHZlcmlmaWVyAQAAABoBVIzLvP/70jvt7zarcQfNc2HezkIyliL3SAAAAAAIVkVSSUZJRUQCAAAACHZlcmlmaWVkAAAAAAtCTEFDS0xJU1RFRAIAAAAJYmxhY2tsaXN0AAAAAQAAAAFpAQAAAAlzZXRzdGF0dXMAAAACAAAACHN1cHBsaWVyAAAABnN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kNvBgUAAAACT3QDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAEElzc3VlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADAwMFAAAAAkFsBgUAAAACQm8GBQAAAAJDbwYFAAAAAk90AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADAwMFAAAAAkFsBgUAAAACQm8GBQAAAAJDbwYFAAAAAk90AwMDAwMDBQAAAAJBbAUAAAACQm8HBgMFAAAAAkFsBQAAAAJDbwcGAwUAAAACQm8FAAAAAkNvBwYDBQAAAAJBbAUAAAACT3QHBgMFAAAAAkJvBQAAAAJPdAcGAwUAAAACQ28FAAAAAk90B6S3h+M=", "chainId": 84, "height": 580754, "spentComplexity": 0 } View: original | compacted Prev: 44czG8CGuqU5NwY5ERKbG61wcj2to1VhDQqtegE7Deqz Next: 2pEjguuGxQdqBDVEechtoriexTA9GyxRicXcRvxfXDJt Diff:
Old | New | Differences | |
---|---|---|---|
12 | 12 | func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status") | |
13 | 13 | ||
14 | 14 | ||
15 | - | let verifier = | |
15 | + | let verifier = base58'3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP' | |
16 | 16 | ||
17 | 17 | let VERIFIED = "verified" | |
18 | 18 | ||
20 | 20 | ||
21 | 21 | @Callable(i) | |
22 | 22 | func setstatus (supplier,status) = { | |
23 | - | let account = | |
23 | + | let account = i.caller.bytes | |
24 | 24 | if ((account != verifier)) | |
25 | 25 | then throw("only oracle veryfier are able to manage whitelist") | |
26 | 26 | else if (if ((status != VERIFIED)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let alicePubKey = base58'4odJB3xcaswGibZ1oQ7C9VNoBjtXMsWKexoo35zjBWUx' | |
5 | 5 | ||
6 | 6 | let bobPubKey = base58'4qGMpfFhpc2L1VGrBe5tQFxCWsdYiYttdC9ZmHYJn2Lz' | |
7 | 7 | ||
8 | 8 | let cooperPubKey = base58'EghK1ndUequAR8FfFYnK6itzJoz6XBXuBwJ9R2NBtRS4' | |
9 | 9 | ||
10 | 10 | let otherPubKey = base58'BXCd46i2Pdzu8csVsX2nknDP9D1phC4sa1anNpDHJAog' | |
11 | 11 | ||
12 | 12 | func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status") | |
13 | 13 | ||
14 | 14 | ||
15 | - | let verifier = | |
15 | + | let verifier = base58'3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP' | |
16 | 16 | ||
17 | 17 | let VERIFIED = "verified" | |
18 | 18 | ||
19 | 19 | let BLACKLISTED = "blacklist" | |
20 | 20 | ||
21 | 21 | @Callable(i) | |
22 | 22 | func setstatus (supplier,status) = { | |
23 | - | let account = | |
23 | + | let account = i.caller.bytes | |
24 | 24 | if ((account != verifier)) | |
25 | 25 | then throw("only oracle veryfier are able to manage whitelist") | |
26 | 26 | else if (if ((status != VERIFIED)) | |
27 | 27 | then (status != BLACKLISTED) | |
28 | 28 | else false) | |
29 | 29 | then throw("wrong status") | |
30 | 30 | else WriteSet([DataEntry(getExtValueItemWhiteListStatus(supplier), status)]) | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Verifier(tx) | |
35 | 35 | func verify () = { | |
36 | 36 | let Al = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey)) | |
37 | 37 | then true | |
38 | 38 | else sigVerify(tx.bodyBytes, tx.proofs[1], alicePubKey)) | |
39 | 39 | then true | |
40 | 40 | else sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey) | |
41 | 41 | let Bo = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], bobPubKey)) | |
42 | 42 | then true | |
43 | 43 | else sigVerify(tx.bodyBytes, tx.proofs[1], bobPubKey)) | |
44 | 44 | then true | |
45 | 45 | else sigVerify(tx.bodyBytes, tx.proofs[2], bobPubKey) | |
46 | 46 | let Co = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], cooperPubKey)) | |
47 | 47 | then true | |
48 | 48 | else sigVerify(tx.bodyBytes, tx.proofs[1], cooperPubKey)) | |
49 | 49 | then true | |
50 | 50 | else sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubKey) | |
51 | 51 | let Ot = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], otherPubKey)) | |
52 | 52 | then true | |
53 | 53 | else sigVerify(tx.bodyBytes, tx.proofs[1], otherPubKey)) | |
54 | 54 | then true | |
55 | 55 | else sigVerify(tx.bodyBytes, tx.proofs[2], otherPubKey) | |
56 | 56 | match tx { | |
57 | 57 | case t: SetScriptTransaction => | |
58 | 58 | if (if (Al) | |
59 | 59 | then true | |
60 | 60 | else Bo) | |
61 | 61 | then true | |
62 | 62 | else Co | |
63 | 63 | case t: InvokeScriptTransaction => | |
64 | 64 | if (if (if (Al) | |
65 | 65 | then true | |
66 | 66 | else Bo) | |
67 | 67 | then true | |
68 | 68 | else Co) | |
69 | 69 | then true | |
70 | 70 | else Ot | |
71 | 71 | case t: IssueTransaction => | |
72 | 72 | if (if (if (Al) | |
73 | 73 | then true | |
74 | 74 | else Bo) | |
75 | 75 | then true | |
76 | 76 | else Co) | |
77 | 77 | then true | |
78 | 78 | else Ot | |
79 | 79 | case t: ReissueTransaction => | |
80 | 80 | if (if (if (Al) | |
81 | 81 | then true | |
82 | 82 | else Bo) | |
83 | 83 | then true | |
84 | 84 | else Co) | |
85 | 85 | then true | |
86 | 86 | else Ot | |
87 | 87 | case _ => | |
88 | 88 | if (if (if (if (if (if (Al) | |
89 | 89 | then Bo | |
90 | 90 | else false) | |
91 | 91 | then true | |
92 | 92 | else if (Al) | |
93 | 93 | then Co | |
94 | 94 | else false) | |
95 | 95 | then true | |
96 | 96 | else if (Bo) | |
97 | 97 | then Co | |
98 | 98 | else false) | |
99 | 99 | then true | |
100 | 100 | else if (Al) | |
101 | 101 | then Ot | |
102 | 102 | else false) | |
103 | 103 | then true | |
104 | 104 | else if (Bo) | |
105 | 105 | then Ot | |
106 | 106 | else false) | |
107 | 107 | then true | |
108 | 108 | else if (Co) | |
109 | 109 | then Ot | |
110 | 110 | else false | |
111 | 111 | } | |
112 | 112 | } | |
113 | 113 |
github/deemru/w8io/169f3d6 40.92 ms ◑