tx · A6kYjQjZ9idRwfHhNiouVTRzi2XHEgoDAWQQAikPg4Zt 3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW: -0.01400000 Waves 2020.03.10 17:23 [903152] smart account 3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW > SELF 0.00000000 Waves
{ "type": 13, "id": "A6kYjQjZ9idRwfHhNiouVTRzi2XHEgoDAWQQAikPg4Zt", "fee": 1400000, "feeAssetId": null, "timestamp": 1583850208654, "version": 1, "sender": "3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW", "senderPublicKey": "7wiL4SU2VfpuDUUtTqN4WrWXBp7awHtxk4BjkK1vYuSY", "proofs": [ "5Gr4Lku1rnCdpPaYQLA4LZf2UwjpDTDRV5QTuYnVWJe2r8e8xHUynqSDtzzGSBGdQ6nkhLddPoW3jSSZugUbhKux" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAUAAAAABndhbGxldAEAAAAgZyo3NScvF56e9La2lYCsgs0dgVdeQU7xmJjRzUPPRkEAAAAACWFkbWluVXNlcgEAAAAghFnXNsQSGpUKiNBWUUMLCM69H3jgPMEiP2tt1KoPcB8AAAAACWZpcnN0VXNlcgEAAAAgXHjyTFotmbb6VSCkYAl3az9x7s7VQ+IhzTAYFFdfDzUAAAAACnNlY29uZFVzZXIBAAAAICXXatLXfc9PWvPdUk9w2ET0B2yb+voFChId12ywhaFuAAAAAAl0aGlyZFVzZXIBAAAAINAB23rNl6282ZvbidJHrh9e2ik3LiKcGpm4DX1RScc+AAAAAAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAADHdhbGxldFNpZ25lZAMDAwMDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAGd2FsbGV0BgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZ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AAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAABndhbGxldAfWELKk", "chainId": 84, "height": 903152, "spentComplexity": 0 } View: original | compacted Prev: DNFVQDqfq1f7amq57QTm5v9Xo2ALojjjXXcqftwxBqk Next: 33fnkTsQvr7GUU11rJG2whQFbYZXkfeyuLhkka49BCps Diff:
Old | New | Differences | |
---|---|---|---|
70 | 70 | then 1 | |
71 | 71 | else 0 | |
72 | 72 | match tx { | |
73 | - | case e: ExchangeTransaction => | |
74 | - | true | |
75 | - | case o: Order => | |
76 | - | true | |
73 | + | case e: Order|ExchangeTransaction => | |
74 | + | (((((walletSigned + adminUserSigned) + firstUserSigned) + secondUserSigned) + thirdUserSigned) >= 1) | |
77 | 75 | case d: SetAssetScriptTransaction|DataTransaction|ReissueTransaction|CreateAliasTransaction|IssueTransaction|SetScriptTransaction => | |
78 | 76 | if (sigVerify(tx.bodyBytes, tx.proofs[0], adminUser)) | |
79 | 77 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let wallet = base58'7wiL4SU2VfpuDUUtTqN4WrWXBp7awHtxk4BjkK1vYuSY' | |
5 | 5 | ||
6 | 6 | let adminUser = base58'9ueGkrW1TASrdthpEUTh9edK7tjp3kxNadNLjJrJAbJe' | |
7 | 7 | ||
8 | 8 | let firstUser = base58'7DyUV76S6XpwViiwEuPZXwtZfuWAMFBmyDTLsUfwfd2U' | |
9 | 9 | ||
10 | 10 | let secondUser = base58'3YibrbpcmutPYtjQRjL9HHNXm7D7xmVQrvuZsZ16GBsB' | |
11 | 11 | ||
12 | 12 | let thirdUser = base58'EzySjsKeETYuxaz7vqchgVoKMdCnBLWqemcYFvamFPwT' | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Verifier(tx) | |
16 | 16 | func verify () = { | |
17 | 17 | let walletSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], wallet)) | |
18 | 18 | then true | |
19 | 19 | else sigVerify(tx.bodyBytes, tx.proofs[1], wallet)) | |
20 | 20 | then true | |
21 | 21 | else sigVerify(tx.bodyBytes, tx.proofs[2], wallet)) | |
22 | 22 | then true | |
23 | 23 | else sigVerify(tx.bodyBytes, tx.proofs[3], wallet)) | |
24 | 24 | then true | |
25 | 25 | else sigVerify(tx.bodyBytes, tx.proofs[4], wallet)) | |
26 | 26 | then 1 | |
27 | 27 | else 0 | |
28 | 28 | let adminUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminUser)) | |
29 | 29 | then true | |
30 | 30 | else sigVerify(tx.bodyBytes, tx.proofs[1], adminUser)) | |
31 | 31 | then true | |
32 | 32 | else sigVerify(tx.bodyBytes, tx.proofs[2], adminUser)) | |
33 | 33 | then true | |
34 | 34 | else sigVerify(tx.bodyBytes, tx.proofs[3], adminUser)) | |
35 | 35 | then true | |
36 | 36 | else sigVerify(tx.bodyBytes, tx.proofs[4], adminUser)) | |
37 | 37 | then 1 | |
38 | 38 | else 0 | |
39 | 39 | let firstUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
40 | 40 | then true | |
41 | 41 | else sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
42 | 42 | then true | |
43 | 43 | else sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
44 | 44 | then true | |
45 | 45 | else sigVerify(tx.bodyBytes, tx.proofs[3], firstUser)) | |
46 | 46 | then true | |
47 | 47 | else sigVerify(tx.bodyBytes, tx.proofs[4], firstUser)) | |
48 | 48 | then 1 | |
49 | 49 | else 0 | |
50 | 50 | let secondUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
51 | 51 | then true | |
52 | 52 | else sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
53 | 53 | then true | |
54 | 54 | else sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
55 | 55 | then true | |
56 | 56 | else sigVerify(tx.bodyBytes, tx.proofs[3], secondUser)) | |
57 | 57 | then true | |
58 | 58 | else sigVerify(tx.bodyBytes, tx.proofs[4], secondUser)) | |
59 | 59 | then 1 | |
60 | 60 | else 0 | |
61 | 61 | let thirdUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
62 | 62 | then true | |
63 | 63 | else sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
64 | 64 | then true | |
65 | 65 | else sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
66 | 66 | then true | |
67 | 67 | else sigVerify(tx.bodyBytes, tx.proofs[3], thirdUser)) | |
68 | 68 | then true | |
69 | 69 | else sigVerify(tx.bodyBytes, tx.proofs[4], thirdUser)) | |
70 | 70 | then 1 | |
71 | 71 | else 0 | |
72 | 72 | match tx { | |
73 | - | case e: ExchangeTransaction => | |
74 | - | true | |
75 | - | case o: Order => | |
76 | - | true | |
73 | + | case e: Order|ExchangeTransaction => | |
74 | + | (((((walletSigned + adminUserSigned) + firstUserSigned) + secondUserSigned) + thirdUserSigned) >= 1) | |
77 | 75 | case d: SetAssetScriptTransaction|DataTransaction|ReissueTransaction|CreateAliasTransaction|IssueTransaction|SetScriptTransaction => | |
78 | 76 | if (sigVerify(tx.bodyBytes, tx.proofs[0], adminUser)) | |
79 | 77 | then true | |
80 | 78 | else sigVerify(tx.bodyBytes, tx.proofs[1], adminUser) | |
81 | 79 | case t: TransferTransaction => | |
82 | 80 | let signCount = if (isDefined(t.assetId)) | |
83 | 81 | then 1 | |
84 | 82 | else 4 | |
85 | 83 | (((((walletSigned + adminUserSigned) + firstUserSigned) + secondUserSigned) + thirdUserSigned) >= signCount) | |
86 | 84 | case b: BurnTransaction => | |
87 | 85 | if (sigVerify(tx.bodyBytes, tx.proofs[0], wallet)) | |
88 | 86 | then true | |
89 | 87 | else sigVerify(tx.bodyBytes, tx.proofs[1], wallet) | |
90 | 88 | case _ => | |
91 | 89 | false | |
92 | 90 | } | |
93 | 91 | } | |
94 | 92 |
github/deemru/w8io/026f985 31.39 ms ◑