tx · 7HgXULuoZT6UXdF98YCrcBEKdwKKVirm9FJ7hWLgqW4E 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81: -0.01400000 Waves 2020.08.11 07:21 [1127357] smart account 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81 > SELF 0.00000000 Waves
{ "type": 13, "id": "7HgXULuoZT6UXdF98YCrcBEKdwKKVirm9FJ7hWLgqW4E", "fee": 1400000, "feeAssetId": null, "timestamp": 1597119725361, "version": 1, "sender": "3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81", "senderPublicKey": "7F9WJ2MEaCQTxjwqCQmL9jHicqJVc3uCmntzCMAK8yq6", "proofs": [ "4SfK1QkS8hksFrEtcadnMQzWK85YAThJ7Zk2H1LusffwhCb1DuZ69hjEeUmhcSjMrdwFDR4NcSC84WwracR9dwYC" ], "script": "base64:AwQAAAAETk9ORQIAAAAEbm9uZQQAAAALdXNlcnNQdWJLZXkBAAAAIKeP6tgl4CP2PWCZbTcLVLGPExrT9u/W4PAFsxrOIcYHBAAAAAl1c2Vyc0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAC3VzZXJzUHViS2V5BAAAAARidG5zAQAAACDFLOWBobFDqtyu6bkFDRsq16C369fJHs5Bnyp0LEWdcwQAAAAEYnRuZgEAAAAgAcfavlePt+AR+muoBefYqFrjn0Oc5fUH1esIaonljXkKAQAAAAh2ZXJpZmllcgAAAAEAAAAHYWNjb3VudAMJAAAAAAAAAgUAAAAHYWNjb3VudAUAAAAEdGhpcwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAA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2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABcwUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAEExlYXNlVHJhbnNhY3Rpb24EAAAAAWwFAAAAByRtYXRjaDAJAQAAABdhbGxvd2VkQWRkclNwb25zb3JlZEZlZQAAAAEJAAQkAAAAAQgFAAAAAWwAAAAJcmVjaXBpZW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABZMZWFzZUNhbmNlbFRyYW5zYWN0aW9uBAAAAAFjBQAAAAckbWF0Y2gwCQEAAAAIdmVyaWZpZXIAAAABBQAAAAR0aGlzBoD46Aw=", "chainId": 84, "height": 1127357, "spentComplexity": 0 } View: original | compacted Prev: 3bbDM9BhxXwrDe9RTxBZAF2QFGoGLMvpKKV6swxYCPni Next: BK7uWrSdWC6Xb6SGrC6MajLoAM8BC5n46a6jFuS1dpnt Diff:
Old | New | Differences | |
---|---|---|---|
76 | 76 | } | |
77 | 77 | } | |
78 | 78 | } | |
79 | - | if (!(isDefined(assetId))) | |
80 | - | then true | |
81 | - | else if (if (isDefined(assetId)) | |
82 | - | then (contain == true) | |
83 | - | else false) | |
84 | - | then true | |
85 | - | else if (if (isDefined(assetId)) | |
86 | - | then (contain != true) | |
87 | - | else false) | |
88 | - | then throw((("This token ID " + getStrVar(contain)) + " is not allowed to operate in this account")) | |
89 | - | else verifier(usersAddr) | |
79 | + | throw(getStrVar(contain)) | |
90 | 80 | } | |
91 | 81 | ||
92 | 82 | func allowedAddrSponsoredFee (addr) = { | |
93 | 83 | let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",") | |
94 | 84 | let contain = { | |
95 | - | let $ | |
96 | - | let $ | |
97 | - | let $ | |
98 | - | if (($ | |
99 | - | then $ | |
85 | + | let $list20052052 = addrsList | |
86 | + | let $size20052052 = size($list20052052) | |
87 | + | let $acc020052052 = toString(addr) | |
88 | + | if (($size20052052 == 0)) | |
89 | + | then $acc020052052 | |
100 | 90 | else { | |
101 | - | let $ | |
102 | - | if (($ | |
103 | - | then $ | |
91 | + | let $acc120052052 = containAddr($acc020052052, $list20052052[0]) | |
92 | + | if (($size20052052 == 1)) | |
93 | + | then $acc120052052 | |
104 | 94 | else { | |
105 | - | let $ | |
106 | - | if (($ | |
107 | - | then $ | |
95 | + | let $acc220052052 = containAddr($acc120052052, $list20052052[1]) | |
96 | + | if (($size20052052 == 2)) | |
97 | + | then $acc220052052 | |
108 | 98 | else { | |
109 | - | let $ | |
110 | - | if (($ | |
111 | - | then $ | |
99 | + | let $acc320052052 = containAddr($acc220052052, $list20052052[2]) | |
100 | + | if (($size20052052 == 3)) | |
101 | + | then $acc320052052 | |
112 | 102 | else { | |
113 | - | let $ | |
114 | - | if (($ | |
115 | - | then $ | |
103 | + | let $acc420052052 = containAddr($acc320052052, $list20052052[3]) | |
104 | + | if (($size20052052 == 4)) | |
105 | + | then $acc420052052 | |
116 | 106 | else { | |
117 | - | let $ | |
118 | - | if (($ | |
119 | - | then $ | |
107 | + | let $acc520052052 = containAddr($acc420052052, $list20052052[4]) | |
108 | + | if (($size20052052 == 5)) | |
109 | + | then $acc520052052 | |
120 | 110 | else { | |
121 | - | let $ | |
111 | + | let $acc620052052 = containAddr($acc520052052, $list20052052[5]) | |
122 | 112 | throw("List size exceed 5") | |
123 | 113 | } | |
124 | 114 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let NONE = "none" | |
4 | 4 | let usersPubKey = base58'CH6NGp8BFPQ8gm6cPeVG9S3ZWp7m39eQnZU3eTdZgayU' | |
5 | 5 | let usersAddr = addressFromPublicKey(usersPubKey) | |
6 | 6 | let btns = base58'EGh2LufqeTEdihgaDz6iZosJtsyY98sqkHX2WP8Csnw4' | |
7 | 7 | let btnf = base58'7xAHFCPLRSa7XfNNbnd9DMPd9SkgpNfrptFvE4pJE7J' | |
8 | 8 | func verifier (account) = if ((account == this)) | |
9 | 9 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
10 | 10 | else sigVerify(tx.bodyBytes, tx.proofs[0], usersPubKey) | |
11 | 11 | ||
12 | 12 | func getStrVar (key) = { | |
13 | 13 | let str = match key { | |
14 | 14 | case s: String => | |
15 | 15 | s | |
16 | 16 | case _ => | |
17 | 17 | NONE | |
18 | 18 | } | |
19 | 19 | str | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | func containAddr (a,b) = { | |
23 | 23 | let addr = toString(addressFromPublicKey(fromBase58String(b))) | |
24 | 24 | if ((addr == a)) | |
25 | 25 | then true | |
26 | 26 | else if (if ((a == true)) | |
27 | 27 | then (addr != a) | |
28 | 28 | else false) | |
29 | 29 | then true | |
30 | 30 | else a | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | func containTokenId (a,b) = if ((b == a)) | |
34 | 34 | then true | |
35 | 35 | else if (if ((a == true)) | |
36 | 36 | then (b != a) | |
37 | 37 | else false) | |
38 | 38 | then true | |
39 | 39 | else a | |
40 | 40 | ||
41 | 41 | func allowedTransferTokens (assetId) = { | |
42 | 42 | let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTransfers"), ",") | |
43 | 43 | let contain = { | |
44 | 44 | let $list14651536 = tokensIdList | |
45 | 45 | let $size14651536 = size($list14651536) | |
46 | 46 | let $acc014651536 = toBase58String(extract(assetId)) | |
47 | 47 | if (($size14651536 == 0)) | |
48 | 48 | then $acc014651536 | |
49 | 49 | else { | |
50 | 50 | let $acc114651536 = containTokenId($acc014651536, $list14651536[0]) | |
51 | 51 | if (($size14651536 == 1)) | |
52 | 52 | then $acc114651536 | |
53 | 53 | else { | |
54 | 54 | let $acc214651536 = containTokenId($acc114651536, $list14651536[1]) | |
55 | 55 | if (($size14651536 == 2)) | |
56 | 56 | then $acc214651536 | |
57 | 57 | else { | |
58 | 58 | let $acc314651536 = containTokenId($acc214651536, $list14651536[2]) | |
59 | 59 | if (($size14651536 == 3)) | |
60 | 60 | then $acc314651536 | |
61 | 61 | else { | |
62 | 62 | let $acc414651536 = containTokenId($acc314651536, $list14651536[3]) | |
63 | 63 | if (($size14651536 == 4)) | |
64 | 64 | then $acc414651536 | |
65 | 65 | else { | |
66 | 66 | let $acc514651536 = containTokenId($acc414651536, $list14651536[4]) | |
67 | 67 | if (($size14651536 == 5)) | |
68 | 68 | then $acc514651536 | |
69 | 69 | else { | |
70 | 70 | let $acc614651536 = containTokenId($acc514651536, $list14651536[5]) | |
71 | 71 | throw("List size exceed 5") | |
72 | 72 | } | |
73 | 73 | } | |
74 | 74 | } | |
75 | 75 | } | |
76 | 76 | } | |
77 | 77 | } | |
78 | 78 | } | |
79 | - | if (!(isDefined(assetId))) | |
80 | - | then true | |
81 | - | else if (if (isDefined(assetId)) | |
82 | - | then (contain == true) | |
83 | - | else false) | |
84 | - | then true | |
85 | - | else if (if (isDefined(assetId)) | |
86 | - | then (contain != true) | |
87 | - | else false) | |
88 | - | then throw((("This token ID " + getStrVar(contain)) + " is not allowed to operate in this account")) | |
89 | - | else verifier(usersAddr) | |
79 | + | throw(getStrVar(contain)) | |
90 | 80 | } | |
91 | 81 | ||
92 | 82 | func allowedAddrSponsoredFee (addr) = { | |
93 | 83 | let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",") | |
94 | 84 | let contain = { | |
95 | - | let $ | |
96 | - | let $ | |
97 | - | let $ | |
98 | - | if (($ | |
99 | - | then $ | |
85 | + | let $list20052052 = addrsList | |
86 | + | let $size20052052 = size($list20052052) | |
87 | + | let $acc020052052 = toString(addr) | |
88 | + | if (($size20052052 == 0)) | |
89 | + | then $acc020052052 | |
100 | 90 | else { | |
101 | - | let $ | |
102 | - | if (($ | |
103 | - | then $ | |
91 | + | let $acc120052052 = containAddr($acc020052052, $list20052052[0]) | |
92 | + | if (($size20052052 == 1)) | |
93 | + | then $acc120052052 | |
104 | 94 | else { | |
105 | - | let $ | |
106 | - | if (($ | |
107 | - | then $ | |
95 | + | let $acc220052052 = containAddr($acc120052052, $list20052052[1]) | |
96 | + | if (($size20052052 == 2)) | |
97 | + | then $acc220052052 | |
108 | 98 | else { | |
109 | - | let $ | |
110 | - | if (($ | |
111 | - | then $ | |
99 | + | let $acc320052052 = containAddr($acc220052052, $list20052052[2]) | |
100 | + | if (($size20052052 == 3)) | |
101 | + | then $acc320052052 | |
112 | 102 | else { | |
113 | - | let $ | |
114 | - | if (($ | |
115 | - | then $ | |
103 | + | let $acc420052052 = containAddr($acc320052052, $list20052052[3]) | |
104 | + | if (($size20052052 == 4)) | |
105 | + | then $acc420052052 | |
116 | 106 | else { | |
117 | - | let $ | |
118 | - | if (($ | |
119 | - | then $ | |
107 | + | let $acc520052052 = containAddr($acc420052052, $list20052052[4]) | |
108 | + | if (($size20052052 == 5)) | |
109 | + | then $acc520052052 | |
120 | 110 | else { | |
121 | - | let $ | |
111 | + | let $acc620052052 = containAddr($acc520052052, $list20052052[5]) | |
122 | 112 | throw("List size exceed 5") | |
123 | 113 | } | |
124 | 114 | } | |
125 | 115 | } | |
126 | 116 | } | |
127 | 117 | } | |
128 | 118 | } | |
129 | 119 | } | |
130 | 120 | if ((contain != true)) | |
131 | 121 | then throw((("This address " + getStrVar(contain)) + " is not allowed to operate with the BitNodes sponsored token")) | |
132 | 122 | else verifier(this) | |
133 | 123 | } | |
134 | 124 | ||
135 | 125 | match tx { | |
136 | 126 | case t: TransferTransaction => | |
137 | 127 | if (if ((t.assetId != btnf)) | |
138 | 128 | then (t.feeAssetId != btnf) | |
139 | 129 | else false) | |
140 | 130 | then allowedTransferTokens(t.assetId) | |
141 | 131 | else if (if ((t.assetId == btnf)) | |
142 | 132 | then true | |
143 | 133 | else (t.feeAssetId == btnf)) | |
144 | 134 | then allowedAddrSponsoredFee(addressFromRecipient(t.recipient)) | |
145 | 135 | else throw("Operação não autorizada para contas centralizadas na Plataforma BitNodes") | |
146 | 136 | case o: Order => | |
147 | 137 | let pricer = allowedTransferTokens(o.assetPair.priceAsset) | |
148 | 138 | if (!(pricer)) | |
149 | 139 | then throw("price não foi reconhecido") | |
150 | 140 | else throw("price foi reconhecido") | |
151 | 141 | case e: ExchangeTransaction => | |
152 | 142 | true | |
153 | 143 | case burn: BurnTransaction => | |
154 | 144 | verifier(usersAddr) | |
155 | 145 | case d: DataTransaction => | |
156 | 146 | verifier(usersAddr) | |
157 | 147 | case s: SetScriptTransaction => | |
158 | 148 | true | |
159 | 149 | case l: LeaseTransaction => | |
160 | 150 | allowedAddrSponsoredFee(addressFromRecipient(l.recipient)) | |
161 | 151 | case c: LeaseCancelTransaction => | |
162 | 152 | verifier(this) | |
163 | 153 | case _ => | |
164 | 154 | true | |
165 | 155 | } |
github/deemru/w8io/169f3d6 40.80 ms ◑