tx · 3nXZ9anWQVkegX2wVBimik4HLNHgWGCoD2a1pmFJ53oo 3MzmMwLwGx26c6SEQyghZvoYckQzmq4jusd: -0.14000000 Waves 2022.12.15 17:09 [2361528] smart account 3MzmMwLwGx26c6SEQyghZvoYckQzmq4jusd > SELF 0.00000000 Waves
{ "type": 13, "id": "3nXZ9anWQVkegX2wVBimik4HLNHgWGCoD2a1pmFJ53oo", "fee": 14000000, "feeAssetId": null, "timestamp": 1671113387599, "version": 2, "chainId": 84, "sender": "3MzmMwLwGx26c6SEQyghZvoYckQzmq4jusd", "senderPublicKey": "4enJnpb22dKBKv5LQx9eLesMHfLz9H6j8iJF1z6aYx7T", "proofs": [ "4CgJYdgZip7FrQNrYf5GFQLXgahoC1Yyna8iWiD2snJUvdY5hcCjb93XZRz9HjwjmQaoj8eZbLCBtdcKAaVH9Jf5", "2zAUEZXepAzn7ofQcF8Wc5cURWkW1RFjPbSHLEe4BsCDioomQC1JJmnd2uu2ZZiL1YVeVJAhuD3PhjaRbWr863Ch" ], "script": "base64:BgICCAINAA1rUG9vbEluT3JlY2xlAgVwb29sXwANa1Bvb2xBc3NldElkQQIKQV9hc3NldF9pZAANa1Bvb2xBc3NldElkQgIKQl9hc3NldF9pZAAGb3JhY2xlCQEHQWRkcmVzcwEBGgFUSBOXDMDTM8wlMoC2KfenZGiAq+PMe0uZARNnZXRCYXNlNThGcm9tT3JhY2xlAQNrZXkEByRtYXRjaDAJAJ0IAgUGb3JhY2xlBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAZzdHJpbmcFByRtYXRjaDAJANkEAQUGc3RyaW5nBAdub3RoaW5nBQckbWF0Y2gwCQACAQkArAICBQNrZXkCCGlzIGVtcHR5AA1rQWRtaW5QdWJLZXkxAgthZG1pbl9wdWJfMQANa0FkbWluUHViS2V5MgILYWRtaW5fcHViXzIADWtBZG1pblB1YktleTMCC2FkbWluX3B1Yl8zABJrQWRtaW5JbnZva2VQdWJLZXkCEGFkbWluX2ludm9r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jBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsFCmlzUmlnaHRGZWUHBRBzaWduZWRCeU9uZUFkbWluBwUPaXNUcmFuc2ZlcldhdmVzBwkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAACE5egEA==", "height": 2361528, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8ZL2wPCQYBpaiHKekgytdt6gsJjL4oY8e74K82S1nzb4 Next: none Diff:
Old | New | Differences | |
---|---|---|---|
45 | 45 | let t = if (sigVerify(r.bodyBytes, r.proofs[0], n)) | |
46 | 46 | then 1 | |
47 | 47 | else 0 | |
48 | - | let u = if (sigVerify(r.bodyBytes, r.proofs[ | |
48 | + | let u = if (sigVerify(r.bodyBytes, r.proofs[0], o)) | |
49 | 49 | then 1 | |
50 | 50 | else 0 | |
51 | - | let v = if (sigVerify(r.bodyBytes, r.proofs[ | |
51 | + | let v = if (sigVerify(r.bodyBytes, r.proofs[0], p)) | |
52 | 52 | then 1 | |
53 | 53 | else 0 | |
54 | - | let w = if (sigVerify(r.bodyBytes, r.proofs[ | |
54 | + | let w = if (sigVerify(r.bodyBytes, r.proofs[0], q)) | |
55 | 55 | then 1 | |
56 | 56 | else 0 | |
57 | 57 | let g = r |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "pool_" | |
5 | 5 | ||
6 | 6 | let b = "A_asset_id" | |
7 | 7 | ||
8 | 8 | let c = "B_asset_id" | |
9 | 9 | ||
10 | 10 | let d = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
11 | 11 | ||
12 | 12 | func e (f) = { | |
13 | 13 | let g = getString(d, f) | |
14 | 14 | if ($isInstanceOf(g, "String")) | |
15 | 15 | then { | |
16 | 16 | let h = g | |
17 | 17 | fromBase58String(h) | |
18 | 18 | } | |
19 | 19 | else { | |
20 | 20 | let i = g | |
21 | 21 | throw((f + "is empty")) | |
22 | 22 | } | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | let j = "admin_pub_1" | |
27 | 27 | ||
28 | 28 | let k = "admin_pub_2" | |
29 | 29 | ||
30 | 30 | let l = "admin_pub_3" | |
31 | 31 | ||
32 | 32 | let m = "admin_invoke_pub" | |
33 | 33 | ||
34 | 34 | let n = e(j) | |
35 | 35 | ||
36 | 36 | let o = e(k) | |
37 | 37 | ||
38 | 38 | let p = e(l) | |
39 | 39 | ||
40 | 40 | let q = e(m) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | @Verifier(r) | |
44 | 44 | func s () = { | |
45 | 45 | let t = if (sigVerify(r.bodyBytes, r.proofs[0], n)) | |
46 | 46 | then 1 | |
47 | 47 | else 0 | |
48 | - | let u = if (sigVerify(r.bodyBytes, r.proofs[ | |
48 | + | let u = if (sigVerify(r.bodyBytes, r.proofs[0], o)) | |
49 | 49 | then 1 | |
50 | 50 | else 0 | |
51 | - | let v = if (sigVerify(r.bodyBytes, r.proofs[ | |
51 | + | let v = if (sigVerify(r.bodyBytes, r.proofs[0], p)) | |
52 | 52 | then 1 | |
53 | 53 | else 0 | |
54 | - | let w = if (sigVerify(r.bodyBytes, r.proofs[ | |
54 | + | let w = if (sigVerify(r.bodyBytes, r.proofs[0], q)) | |
55 | 55 | then 1 | |
56 | 56 | else 0 | |
57 | 57 | let g = r | |
58 | 58 | if ($isInstanceOf(g, "MassTransferTransaction")) | |
59 | 59 | then { | |
60 | 60 | let x = g | |
61 | 61 | func y (z,A) = { | |
62 | 62 | let B = { | |
63 | 63 | let C = A.recipient | |
64 | 64 | if ($isInstanceOf(C, "Address")) | |
65 | 65 | then { | |
66 | 66 | let D = C | |
67 | 67 | toString(D) | |
68 | 68 | } | |
69 | 69 | else throw("Not known type of recipient") | |
70 | 70 | } | |
71 | 71 | if (isDefined(getString(d, (a + B)))) | |
72 | 72 | then if ((valueOrElse(getString(A.recipient, b), "") == "WAVES")) | |
73 | 73 | then true | |
74 | 74 | else (valueOrElse(getString(A.recipient, c), "") == "WAVES") | |
75 | 75 | else false | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | let E = (x.fee == (500000 + (fraction(50000, size(x.transfers), 100000, CEILING) * 100000))) | |
79 | 79 | let F = (x.assetId == unit) | |
80 | 80 | let G = ((((t + u) + v) + w) >= 1) | |
81 | 81 | if (if (if ({ | |
82 | 82 | let H = x.transfers | |
83 | 83 | let I = size(H) | |
84 | 84 | let J = true | |
85 | 85 | func K (L,M) = if ((M >= I)) | |
86 | 86 | then L | |
87 | 87 | else y(L, H[M]) | |
88 | 88 | ||
89 | 89 | func N (L,M) = if ((M >= I)) | |
90 | 90 | then L | |
91 | 91 | else throw("List size exceeds 27") | |
92 | 92 | ||
93 | 93 | N(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(J, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27) | |
94 | 94 | }) | |
95 | 95 | then E | |
96 | 96 | else false) | |
97 | 97 | then G | |
98 | 98 | else false) | |
99 | 99 | then F | |
100 | 100 | else false | |
101 | 101 | } | |
102 | 102 | else (((t + u) + v) >= 2) | |
103 | 103 | } | |
104 | 104 |
github/deemru/w8io/026f985 44.18 ms ◑