tx · DrYLRTupMnNfAHL59gn8wwqkg6sRJGma2ajoxqdDuxj2 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81: -0.01400000 Waves 2020.08.11 06:19 [1127298] smart account 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81 > SELF 0.00000000 Waves
{ "type": 13, "id": "DrYLRTupMnNfAHL59gn8wwqkg6sRJGma2ajoxqdDuxj2", "fee": 1400000, "feeAssetId": null, "timestamp": 1597115953026, "version": 1, "sender": "3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81", "senderPublicKey": "7F9WJ2MEaCQTxjwqCQmL9jHicqJVc3uCmntzCMAK8yq6", "proofs": [ "5FyY8gCTCHZ1qDr7WpG1dA1tetWVzpjjyaMZUcE2cEgdwKFj18XSAHym1hRreDjDDu6196h4jJaQuyQ6Jh4sSeQp" ], "script": "base64:AwQAAAAETk9ORQIAAAAEbm9uZQQAAAALdXNlcnNQdWJLZXkBAAAAIKeP6tgl4CP2PWCZbTcLVLGPExrT9u/W4PAFsxrOIcYHBAAAAAl1c2Vyc0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAC3VzZXJzUHViS2V5BAAAAARidG5zAQAAACDFLOWBobFDqtyu6bkFDRsq16C369fJHs5Bnyp0LEWdcwQAAAAEYnRuZgEAAAAgAcfavlePt+AR+muoBefYqFrjn0Oc5fUH1esIaonljXkKAQAAAAh2ZXJpZmllcgAAAAEAAAAHYWNjb3VudAMJAAAAAAAAAgUAAAAHYWNjb3VudAUAAAAEdGhpcwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAA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2ZXJpZmllcgAAAAEFAAAABHRoaXMGitoD7g==", "chainId": 84, "height": 1127298, "spentComplexity": 0 } View: original | compacted Prev: 5AWatfQN9gR7KuJqPfzm1aqKjHh2Wwhx5WSUfpdNh3yf Next: 6gkCU2T3e1yMoBqmY8xv7SQem8PHXJoW3eifiHqpQKCV Diff:
Old | New | Differences | |
---|---|---|---|
154 | 154 | then allowedAddrSponsoredFee(addressFromRecipient(t.recipient)) | |
155 | 155 | else throw("Operação não autorizada para contas centralizadas na Plataforma BitNodes") | |
156 | 156 | case o: Order => | |
157 | - | let amount = allowedTransferTokens(o.assetPair.amountAsset) | |
158 | - | let price = allowedTransferTokens(o.assetPair.priceAsset) | |
159 | - | if (!(amount)) | |
160 | - | then throw("amount foi rejeitado") | |
161 | - | else if (price) | |
162 | - | then throw("price foi rejeitado") | |
163 | - | else throw("não sei o que é") | |
157 | + | true | |
164 | 158 | case e: ExchangeTransaction => | |
165 | 159 | true | |
166 | 160 | case burn: BurnTransaction => |
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 b: Boolean => | |
17 | 17 | toString(b) | |
18 | 18 | case i: Int => | |
19 | 19 | toString(i) | |
20 | 20 | case bv: ByteVector => | |
21 | 21 | toBase58String(bv) | |
22 | 22 | case ap: AssetPair => | |
23 | 23 | ((toBase58String(extract(ap.amountAsset)) + ",") + toBase58String(extract(ap.priceAsset))) | |
24 | 24 | case u: Unit => | |
25 | 25 | "empty" | |
26 | 26 | case _ => | |
27 | 27 | NONE | |
28 | 28 | } | |
29 | 29 | str | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | func containAddr (a,b) = { | |
33 | 33 | let addr = toString(addressFromPublicKey(fromBase58String(b))) | |
34 | 34 | if ((addr == a)) | |
35 | 35 | then true | |
36 | 36 | else if (if ((a == true)) | |
37 | 37 | then (addr != a) | |
38 | 38 | else false) | |
39 | 39 | then true | |
40 | 40 | else a | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | func containTokenId (a,b) = if ((b == a)) | |
44 | 44 | then true | |
45 | 45 | else if (if ((a == true)) | |
46 | 46 | then (b != a) | |
47 | 47 | else false) | |
48 | 48 | then true | |
49 | 49 | else a | |
50 | 50 | ||
51 | 51 | func allowedTransferTokens (assetId) = { | |
52 | 52 | let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTransfers"), ",") | |
53 | 53 | let contain = { | |
54 | 54 | let $list14601531 = tokensIdList | |
55 | 55 | let $size14601531 = size($list14601531) | |
56 | 56 | let $acc014601531 = toBase58String(extract(assetId)) | |
57 | 57 | if (($size14601531 == 0)) | |
58 | 58 | then $acc014601531 | |
59 | 59 | else { | |
60 | 60 | let $acc114601531 = containTokenId($acc014601531, $list14601531[0]) | |
61 | 61 | if (($size14601531 == 1)) | |
62 | 62 | then $acc114601531 | |
63 | 63 | else { | |
64 | 64 | let $acc214601531 = containTokenId($acc114601531, $list14601531[1]) | |
65 | 65 | if (($size14601531 == 2)) | |
66 | 66 | then $acc214601531 | |
67 | 67 | else { | |
68 | 68 | let $acc314601531 = containTokenId($acc214601531, $list14601531[2]) | |
69 | 69 | if (($size14601531 == 3)) | |
70 | 70 | then $acc314601531 | |
71 | 71 | else { | |
72 | 72 | let $acc414601531 = containTokenId($acc314601531, $list14601531[3]) | |
73 | 73 | if (($size14601531 == 4)) | |
74 | 74 | then $acc414601531 | |
75 | 75 | else { | |
76 | 76 | let $acc514601531 = containTokenId($acc414601531, $list14601531[4]) | |
77 | 77 | if (($size14601531 == 5)) | |
78 | 78 | then $acc514601531 | |
79 | 79 | else { | |
80 | 80 | let $acc614601531 = containTokenId($acc514601531, $list14601531[5]) | |
81 | 81 | throw("List size exceed 5") | |
82 | 82 | } | |
83 | 83 | } | |
84 | 84 | } | |
85 | 85 | } | |
86 | 86 | } | |
87 | 87 | } | |
88 | 88 | } | |
89 | 89 | if (!(isDefined(assetId))) | |
90 | 90 | then true | |
91 | 91 | else if (if (isDefined(assetId)) | |
92 | 92 | then (contain == true) | |
93 | 93 | else false) | |
94 | 94 | then true | |
95 | 95 | else if (if (isDefined(assetId)) | |
96 | 96 | then (contain != true) | |
97 | 97 | else false) | |
98 | 98 | then throw((("This token ID " + getStrVar(contain)) + " is not allowed to operate in this account")) | |
99 | 99 | else verifier(usersAddr) | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | func allowedAddrSponsoredFee (addr) = { | |
103 | 103 | let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",") | |
104 | 104 | let contain = { | |
105 | 105 | let $list19662013 = addrsList | |
106 | 106 | let $size19662013 = size($list19662013) | |
107 | 107 | let $acc019662013 = toString(addr) | |
108 | 108 | if (($size19662013 == 0)) | |
109 | 109 | then $acc019662013 | |
110 | 110 | else { | |
111 | 111 | let $acc119662013 = containAddr($acc019662013, $list19662013[0]) | |
112 | 112 | if (($size19662013 == 1)) | |
113 | 113 | then $acc119662013 | |
114 | 114 | else { | |
115 | 115 | let $acc219662013 = containAddr($acc119662013, $list19662013[1]) | |
116 | 116 | if (($size19662013 == 2)) | |
117 | 117 | then $acc219662013 | |
118 | 118 | else { | |
119 | 119 | let $acc319662013 = containAddr($acc219662013, $list19662013[2]) | |
120 | 120 | if (($size19662013 == 3)) | |
121 | 121 | then $acc319662013 | |
122 | 122 | else { | |
123 | 123 | let $acc419662013 = containAddr($acc319662013, $list19662013[3]) | |
124 | 124 | if (($size19662013 == 4)) | |
125 | 125 | then $acc419662013 | |
126 | 126 | else { | |
127 | 127 | let $acc519662013 = containAddr($acc419662013, $list19662013[4]) | |
128 | 128 | if (($size19662013 == 5)) | |
129 | 129 | then $acc519662013 | |
130 | 130 | else { | |
131 | 131 | let $acc619662013 = containAddr($acc519662013, $list19662013[5]) | |
132 | 132 | throw("List size exceed 5") | |
133 | 133 | } | |
134 | 134 | } | |
135 | 135 | } | |
136 | 136 | } | |
137 | 137 | } | |
138 | 138 | } | |
139 | 139 | } | |
140 | 140 | if ((contain != true)) | |
141 | 141 | then throw((("This address " + getStrVar(contain)) + " is not allowed to operate with the BitNodes sponsored token")) | |
142 | 142 | else verifier(this) | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | match tx { | |
146 | 146 | case t: TransferTransaction => | |
147 | 147 | if (if ((t.assetId != btnf)) | |
148 | 148 | then (t.feeAssetId != btnf) | |
149 | 149 | else false) | |
150 | 150 | then allowedTransferTokens(t.assetId) | |
151 | 151 | else if (if ((t.assetId == btnf)) | |
152 | 152 | then true | |
153 | 153 | else (t.feeAssetId == btnf)) | |
154 | 154 | then allowedAddrSponsoredFee(addressFromRecipient(t.recipient)) | |
155 | 155 | else throw("Operação não autorizada para contas centralizadas na Plataforma BitNodes") | |
156 | 156 | case o: Order => | |
157 | - | let amount = allowedTransferTokens(o.assetPair.amountAsset) | |
158 | - | let price = allowedTransferTokens(o.assetPair.priceAsset) | |
159 | - | if (!(amount)) | |
160 | - | then throw("amount foi rejeitado") | |
161 | - | else if (price) | |
162 | - | then throw("price foi rejeitado") | |
163 | - | else throw("não sei o que é") | |
157 | + | true | |
164 | 158 | case e: ExchangeTransaction => | |
165 | 159 | true | |
166 | 160 | case burn: BurnTransaction => | |
167 | 161 | verifier(usersAddr) | |
168 | 162 | case d: DataTransaction => | |
169 | 163 | verifier(usersAddr) | |
170 | 164 | case s: SetScriptTransaction => | |
171 | 165 | verifier(usersAddr) | |
172 | 166 | case l: LeaseTransaction => | |
173 | 167 | allowedAddrSponsoredFee(addressFromRecipient(l.recipient)) | |
174 | 168 | case c: LeaseCancelTransaction => | |
175 | 169 | verifier(this) | |
176 | 170 | case _ => | |
177 | 171 | true | |
178 | 172 | } |
github/deemru/w8io/026f985 27.01 ms ◑