tx · HkPE6MeuebZAoPd8JweR5WUCuuv2JhhHY2mP39UDwizh 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81: -0.01400000 Waves 2020.08.11 08:25 [1127420] smart account 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81 > SELF 0.00000000 Waves
{ "type": 13, "id": "HkPE6MeuebZAoPd8JweR5WUCuuv2JhhHY2mP39UDwizh", "fee": 1400000, "feeAssetId": null, "timestamp": 1597123533697, "version": 1, "sender": "3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81", "senderPublicKey": "7F9WJ2MEaCQTxjwqCQmL9jHicqJVc3uCmntzCMAK8yq6", "proofs": [ "5KE6iS3p66PiJGfTaQaCUB18wRMLsaMk7M1yKnSekMA4AHH6UsJbSEe4mXbNGYGpqhwxcSeqdVkAuinozzrcFZX3" ], "script": "base64:AwQAAAAETk9ORQIAAAAEbm9uZQQAAAALdXNlcnNQdWJLZXkBAAAAIKeP6tgl4CP2PWCZbTcLVLGPExrT9u/W4PAFsxrOIcYHBAAAAAl1c2Vyc0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAC3VzZXJzUHViS2V5BAAAAARidG5zAQAAACDFLOWBobFDqtyu6bkFDRsq16C369fJHs5Bnyp0LEWdcwQAAAAEYnRuZgEAAAAgAcfavlePt+AR+muoBefYqFrjn0Oc5fUH1esIaonljXkKAQAAAAh2ZXJpZmllcgAAAAEAAAAHYWNjb3VudAMJAAAAAAAAAgUAAAAHYWNjb3VudAUAAAAEdGhpcwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAt1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Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAQAAAAh2ZXJpZmllcgAAAAEFAAAACXVzZXJzQWRkcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABBMZWFzZVRyYW5zYWN0aW9uBAAAAAFsBQAAAAckbWF0Y2gwCQEAAAAXYWxsb3dlZEFkZHJTcG9uc29yZWRGZWUAAAABCQAEJAAAAAEIBQAAAAFsAAAACXJlY2lwaWVudAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAWTGVhc2VDYW5jZWxUcmFuc2FjdGlvbgQAAAABYwUAAAAHJG1hdGNoMAkBAAAACHZlcmlmaWVyAAAAAQUAAAAEdGhpcwbcpIRN", "chainId": 84, "height": 1127420, "spentComplexity": 0 } View: original | compacted Prev: 538DoV7W52HRPDtXDnr3u2oGgrBB7Ys2rEnKvL5QdNkV Next: 4SWwXtmY3A31DFUFDLUrv9TD5fnd4zfDqqM9V4qUAqzz Diff:
Old | New | Differences | |
---|---|---|---|
82 | 82 | then (contain == true) | |
83 | 83 | else false) | |
84 | 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(this) | |
85 | + | else verifier(this) | |
90 | 86 | } | |
91 | 87 | ||
92 | 88 | func allowedAddrSponsoredFee (addr) = { | |
93 | 89 | let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",") | |
94 | 90 | let contain = { | |
95 | - | let $ | |
96 | - | let $ | |
97 | - | let $ | |
98 | - | if (($ | |
99 | - | then $ | |
91 | + | let $list19672014 = addrsList | |
92 | + | let $size19672014 = size($list19672014) | |
93 | + | let $acc019672014 = toString(addr) | |
94 | + | if (($size19672014 == 0)) | |
95 | + | then $acc019672014 | |
100 | 96 | else { | |
101 | - | let $ | |
102 | - | if (($ | |
103 | - | then $ | |
97 | + | let $acc119672014 = containAddr($acc019672014, $list19672014[0]) | |
98 | + | if (($size19672014 == 1)) | |
99 | + | then $acc119672014 | |
104 | 100 | else { | |
105 | - | let $ | |
106 | - | if (($ | |
107 | - | then $ | |
101 | + | let $acc219672014 = containAddr($acc119672014, $list19672014[1]) | |
102 | + | if (($size19672014 == 2)) | |
103 | + | then $acc219672014 | |
108 | 104 | else { | |
109 | - | let $ | |
110 | - | if (($ | |
111 | - | then $ | |
105 | + | let $acc319672014 = containAddr($acc219672014, $list19672014[2]) | |
106 | + | if (($size19672014 == 3)) | |
107 | + | then $acc319672014 | |
112 | 108 | else { | |
113 | - | let $ | |
114 | - | if (($ | |
115 | - | then $ | |
109 | + | let $acc419672014 = containAddr($acc319672014, $list19672014[3]) | |
110 | + | if (($size19672014 == 4)) | |
111 | + | then $acc419672014 | |
116 | 112 | else { | |
117 | - | let $ | |
118 | - | if (($ | |
119 | - | then $ | |
113 | + | let $acc519672014 = containAddr($acc419672014, $list19672014[4]) | |
114 | + | if (($size19672014 == 5)) | |
115 | + | then $acc519672014 | |
120 | 116 | else { | |
121 | - | let $ | |
117 | + | let $acc619672014 = containAddr($acc519672014, $list19672014[5]) | |
122 | 118 | throw("List size exceed 5") | |
123 | 119 | } | |
124 | 120 | } |
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 | 79 | if (!(isDefined(assetId))) | |
80 | 80 | then true | |
81 | 81 | else if (if (isDefined(assetId)) | |
82 | 82 | then (contain == true) | |
83 | 83 | else false) | |
84 | 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(this) | |
85 | + | else verifier(this) | |
90 | 86 | } | |
91 | 87 | ||
92 | 88 | func allowedAddrSponsoredFee (addr) = { | |
93 | 89 | let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",") | |
94 | 90 | let contain = { | |
95 | - | let $ | |
96 | - | let $ | |
97 | - | let $ | |
98 | - | if (($ | |
99 | - | then $ | |
91 | + | let $list19672014 = addrsList | |
92 | + | let $size19672014 = size($list19672014) | |
93 | + | let $acc019672014 = toString(addr) | |
94 | + | if (($size19672014 == 0)) | |
95 | + | then $acc019672014 | |
100 | 96 | else { | |
101 | - | let $ | |
102 | - | if (($ | |
103 | - | then $ | |
97 | + | let $acc119672014 = containAddr($acc019672014, $list19672014[0]) | |
98 | + | if (($size19672014 == 1)) | |
99 | + | then $acc119672014 | |
104 | 100 | else { | |
105 | - | let $ | |
106 | - | if (($ | |
107 | - | then $ | |
101 | + | let $acc219672014 = containAddr($acc119672014, $list19672014[1]) | |
102 | + | if (($size19672014 == 2)) | |
103 | + | then $acc219672014 | |
108 | 104 | else { | |
109 | - | let $ | |
110 | - | if (($ | |
111 | - | then $ | |
105 | + | let $acc319672014 = containAddr($acc219672014, $list19672014[2]) | |
106 | + | if (($size19672014 == 3)) | |
107 | + | then $acc319672014 | |
112 | 108 | else { | |
113 | - | let $ | |
114 | - | if (($ | |
115 | - | then $ | |
109 | + | let $acc419672014 = containAddr($acc319672014, $list19672014[3]) | |
110 | + | if (($size19672014 == 4)) | |
111 | + | then $acc419672014 | |
116 | 112 | else { | |
117 | - | let $ | |
118 | - | if (($ | |
119 | - | then $ | |
113 | + | let $acc519672014 = containAddr($acc419672014, $list19672014[4]) | |
114 | + | if (($size19672014 == 5)) | |
115 | + | then $acc519672014 | |
120 | 116 | else { | |
121 | - | let $ | |
117 | + | let $acc619672014 = containAddr($acc519672014, $list19672014[5]) | |
122 | 118 | throw("List size exceed 5") | |
123 | 119 | } | |
124 | 120 | } | |
125 | 121 | } | |
126 | 122 | } | |
127 | 123 | } | |
128 | 124 | } | |
129 | 125 | } | |
130 | 126 | if ((contain != true)) | |
131 | 127 | then throw((("This address " + getStrVar(contain)) + " is not allowed to operate with the BitNodes sponsored token")) | |
132 | 128 | else verifier(this) | |
133 | 129 | } | |
134 | 130 | ||
135 | 131 | match tx { | |
136 | 132 | case t: TransferTransaction => | |
137 | 133 | if (if ((t.assetId != btnf)) | |
138 | 134 | then (t.feeAssetId != btnf) | |
139 | 135 | else false) | |
140 | 136 | then allowedTransferTokens(t.assetId) | |
141 | 137 | else if (if ((t.assetId == btnf)) | |
142 | 138 | then true | |
143 | 139 | else (t.feeAssetId == btnf)) | |
144 | 140 | then allowedAddrSponsoredFee(addressFromRecipient(t.recipient)) | |
145 | 141 | else throw("Operação não autorizada para contas centralizadas na Plataforma BitNodes") | |
146 | 142 | case o: Order => | |
147 | 143 | let myamount = toBase58String(extract(o.assetPair.amountAsset)) | |
148 | 144 | let amount = allowedTransferTokens(fromBase58String(myamount)) | |
149 | 145 | throw(toString(amount)) | |
150 | 146 | case e: ExchangeTransaction => | |
151 | 147 | true | |
152 | 148 | case burn: BurnTransaction => | |
153 | 149 | verifier(usersAddr) | |
154 | 150 | case d: DataTransaction => | |
155 | 151 | verifier(usersAddr) | |
156 | 152 | case s: SetScriptTransaction => | |
157 | 153 | true | |
158 | 154 | case l: LeaseTransaction => | |
159 | 155 | allowedAddrSponsoredFee(addressFromRecipient(l.recipient)) | |
160 | 156 | case c: LeaseCancelTransaction => | |
161 | 157 | verifier(this) | |
162 | 158 | case _ => | |
163 | 159 | true | |
164 | 160 | } |
github/deemru/w8io/169f3d6 48.58 ms ◑