tx · HU5Jq3u1UvUbp3CzPq2znof928cYdh1rMFs69cubJbru 3N5K9GAJtLxDcAzzguVGdguuSVwMJRGv87A: -0.01000000 Waves 2020.03.12 16:29 [906008] smart account 3N5K9GAJtLxDcAzzguVGdguuSVwMJRGv87A > SELF 0.00000000 Waves
{ "type": 13, "id": "HU5Jq3u1UvUbp3CzPq2znof928cYdh1rMFs69cubJbru", "fee": 1000000, "feeAssetId": null, "timestamp": 1584019799907, "version": 1, "sender": "3N5K9GAJtLxDcAzzguVGdguuSVwMJRGv87A", "senderPublicKey": "AEPrrrJLLuPBaT6GdVojGjhvZzKzTMgmwN6zSNosbifW", "proofs": [ "5UsfpZEGWUq3RiUeL2bHF2j6LoYJNPFkmzbrHNStG9bQKZsYNUZJQ5JnhiU6piZ7HQMqJ6mpqgSLTQ9MtB4x3LKm" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAUAAAAABndhbGxldAEAAAAgiSeUkSI1BgLOpY/l9/wupiDhFFSNVuk0UzXBDB3m1W0AAAAACWFkbWluVXNlcgEAAAAg3PETy9ji06YKsVX2Dvy7bMXNFDG5AbWBqV9r3bH+9hcAAAAACWZpcnN0VXNlcgEAAAAgSapVam4nC7VZK/vUMItBcGcH+k3vu+7xRjWPyMOQcnkAAAAACnNlY29uZFVzZXIBAAAAIOj0yJlDzCHOxUbRML+5kbQNCXZhJQ/U6JthsVA1jpsnAAAAAAl0aGlyZFVzZXIBAAAAIHooXDv8jtz1ibE/d9qrWpR5NwbBkLGyUaqxkFp15N93AAAAAAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAADHdhbGxldFNpZ25lZAMDAwMDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAGd2FsbGV0BgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAA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full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let wallet = base58'AEPrrrJLLuPBaT6GdVojGjhvZzKzTMgmwN6zSNosbifW' | |
5 | + | ||
6 | + | let adminUser = base58'FsTuQSWHMNPeM9pVBDD18Mzk4esBrQmWh8BncY86ENYe' | |
7 | + | ||
8 | + | let firstUser = base58'5xZQYPzEoUH21FkKRRGLDAdyq6QLMERNsQc6MT5S9vdE' | |
9 | + | ||
10 | + | let secondUser = base58'GgN5H25hP5NiLUsdHbK7NrbA52kmsKGsdeiWjcPN5Xsk' | |
11 | + | ||
12 | + | let thirdUser = base58'9DrSAtC4UwjN9vXGnmBS4AfWwVayEvKobdmWabVLV6az' | |
13 | + | ||
14 | + | ||
15 | + | @Verifier(tx) | |
16 | + | func verify () = { | |
17 | + | let walletSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], wallet)) | |
18 | + | then true | |
19 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], wallet)) | |
20 | + | then true | |
21 | + | else sigVerify(tx.bodyBytes, tx.proofs[2], wallet)) | |
22 | + | then true | |
23 | + | else sigVerify(tx.bodyBytes, tx.proofs[3], wallet)) | |
24 | + | then true | |
25 | + | else sigVerify(tx.bodyBytes, tx.proofs[4], wallet)) | |
26 | + | then 1 | |
27 | + | else 0 | |
28 | + | let adminUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminUser)) | |
29 | + | then true | |
30 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], adminUser)) | |
31 | + | then true | |
32 | + | else sigVerify(tx.bodyBytes, tx.proofs[2], adminUser)) | |
33 | + | then true | |
34 | + | else sigVerify(tx.bodyBytes, tx.proofs[3], adminUser)) | |
35 | + | then true | |
36 | + | else sigVerify(tx.bodyBytes, tx.proofs[4], adminUser)) | |
37 | + | then 1 | |
38 | + | else 0 | |
39 | + | let firstUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
40 | + | then true | |
41 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
42 | + | then true | |
43 | + | else sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
44 | + | then true | |
45 | + | else sigVerify(tx.bodyBytes, tx.proofs[3], firstUser)) | |
46 | + | then true | |
47 | + | else sigVerify(tx.bodyBytes, tx.proofs[4], firstUser)) | |
48 | + | then 1 | |
49 | + | else 0 | |
50 | + | let secondUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
51 | + | then true | |
52 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
53 | + | then true | |
54 | + | else sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
55 | + | then true | |
56 | + | else sigVerify(tx.bodyBytes, tx.proofs[3], secondUser)) | |
57 | + | then true | |
58 | + | else sigVerify(tx.bodyBytes, tx.proofs[4], secondUser)) | |
59 | + | then 1 | |
60 | + | else 0 | |
61 | + | let thirdUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
62 | + | then true | |
63 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
64 | + | then true | |
65 | + | else sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
66 | + | then true | |
67 | + | else sigVerify(tx.bodyBytes, tx.proofs[3], thirdUser)) | |
68 | + | then true | |
69 | + | else sigVerify(tx.bodyBytes, tx.proofs[4], thirdUser)) | |
70 | + | then 1 | |
71 | + | else 0 | |
72 | + | match tx { | |
73 | + | case e: Order|ExchangeTransaction => | |
74 | + | true | |
75 | + | case d: SetAssetScriptTransaction|DataTransaction|ReissueTransaction|CreateAliasTransaction|IssueTransaction|SetScriptTransaction => | |
76 | + | if (sigVerify(tx.bodyBytes, tx.proofs[0], adminUser)) | |
77 | + | then true | |
78 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], adminUser) | |
79 | + | case t: MassTransferTransaction|TransferTransaction => | |
80 | + | let signCount = if (isDefined(t.assetId)) | |
81 | + | then 1 | |
82 | + | else 4 | |
83 | + | (((((walletSigned + adminUserSigned) + firstUserSigned) + secondUserSigned) + thirdUserSigned) >= signCount) | |
84 | + | case b: BurnTransaction => | |
85 | + | if (sigVerify(tx.bodyBytes, tx.proofs[0], wallet)) | |
86 | + | then true | |
87 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], wallet) | |
88 | + | case _ => | |
89 | + | false | |
90 | + | } | |
91 | + | } | |
92 | + |
github/deemru/w8io/169f3d6 16.59 ms ◑