tx · 44czG8CGuqU5NwY5ERKbG61wcj2to1VhDQqtegE7Deqz

3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP:  -0.01400000 Waves

2019.07.11 10:09 [580714] smart account 3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
22.64 ms