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