tx · 5AWatfQN9gR7KuJqPfzm1aqKjHh2Wwhx5WSUfpdNh3yf

3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81:  -0.01400000 Waves

2020.08.11 06:17 [1127294] smart account 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81 > SELF 0.00000000 Waves

{ "type": 13, "id": "5AWatfQN9gR7KuJqPfzm1aqKjHh2Wwhx5WSUfpdNh3yf", "fee": 1400000, "feeAssetId": null, "timestamp": 1597115815189, "version": 1, "sender": "3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81", "senderPublicKey": "7F9WJ2MEaCQTxjwqCQmL9jHicqJVc3uCmntzCMAK8yq6", "proofs": [ "2GguNgNjAiRK7Ku74UQSoe94qGEr1L6RiAMg3q2T5pQhKmNg4bi8nM3nGjdyrNtoBTtd8tWFT59M9KE3VRFzmzfz" ], "script": "base64:AwQAAAAETk9ORQIAAAAEbm9uZQQAAAALdXNlcnNQdWJLZXkBAAAAIKeP6tgl4CP2PWCZbTcLVLGPExrT9u/W4PAFsxrOIcYHBAAAAAl1c2Vyc0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAC3VzZXJzUHViS2V5BAAAAARidG5zAQAAACDFLOWBobFDqtyu6bkFDRsq16C369fJHs5Bnyp0LEWdcwQAAAAEYnRuZgEAAAAgAcfavlePt+AR+muoBefYqFrjn0Oc5fUH1esIaonljXkKAQAAAAh2ZXJpZmllcgAAAAEAAAAHYWNjb3VudAMJAAAAAAAAAgUAAAAHYWNjb3VudAUAAAAEdGhpcwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAA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AAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAJAQAAAAh2ZXJpZmllcgAAAAEFAAAACXVzZXJzQWRkcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQTGVhc2VUcmFuc2FjdGlvbgQAAAABbAUAAAAHJG1hdGNoMAkBAAAAF2FsbG93ZWRBZGRyU3BvbnNvcmVkRmVlAAAAAQkABCQAAAABCAUAAAABbAAAAAlyZWNpcGllbnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFkxlYXNlQ2FuY2VsVHJhbnNhY3Rpb24EAAAAAWMFAAAAByRtYXRjaDAJAQAAAAh2ZXJpZmllcgAAAAEFAAAABHRoaXMGWXPnCw==", "chainId": 84, "height": 1127294, "spentComplexity": 0 } View: original | compacted Prev: HKLmM8p6j2TP74trwWfbvXHtHMQb7VHsqrF7A7hnU3Dz Next: DrYLRTupMnNfAHL59gn8wwqkg6sRJGma2ajoxqdDuxj2 Diff:
OldNewDifferences
4646 then (b != a)
4747 else false)
4848 then true
49- else throw(("trava em" + b))
49+ else a
5050
5151 func allowedTransferTokens (assetId) = {
5252 let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTransfers"), ",")
5353 let contain = {
54- let $list14781549 = tokensIdList
55- let $size14781549 = size($list14781549)
56- let $acc014781549 = toBase58String(extract(assetId))
57- if (($size14781549 == 0))
58- then $acc014781549
54+ let $list14601531 = tokensIdList
55+ let $size14601531 = size($list14601531)
56+ let $acc014601531 = toBase58String(extract(assetId))
57+ if (($size14601531 == 0))
58+ then $acc014601531
5959 else {
60- let $acc114781549 = containTokenId($acc014781549, $list14781549[0])
61- if (($size14781549 == 1))
62- then $acc114781549
60+ let $acc114601531 = containTokenId($acc014601531, $list14601531[0])
61+ if (($size14601531 == 1))
62+ then $acc114601531
6363 else {
64- let $acc214781549 = containTokenId($acc114781549, $list14781549[1])
65- if (($size14781549 == 2))
66- then $acc214781549
64+ let $acc214601531 = containTokenId($acc114601531, $list14601531[1])
65+ if (($size14601531 == 2))
66+ then $acc214601531
6767 else {
68- let $acc314781549 = containTokenId($acc214781549, $list14781549[2])
69- if (($size14781549 == 3))
70- then $acc314781549
68+ let $acc314601531 = containTokenId($acc214601531, $list14601531[2])
69+ if (($size14601531 == 3))
70+ then $acc314601531
7171 else {
72- let $acc414781549 = containTokenId($acc314781549, $list14781549[3])
73- if (($size14781549 == 4))
74- then $acc414781549
72+ let $acc414601531 = containTokenId($acc314601531, $list14601531[3])
73+ if (($size14601531 == 4))
74+ then $acc414601531
7575 else {
76- let $acc514781549 = containTokenId($acc414781549, $list14781549[4])
77- if (($size14781549 == 5))
78- then $acc514781549
76+ let $acc514601531 = containTokenId($acc414601531, $list14601531[4])
77+ if (($size14601531 == 5))
78+ then $acc514601531
7979 else {
80- let $acc614781549 = containTokenId($acc514781549, $list14781549[5])
80+ let $acc614601531 = containTokenId($acc514601531, $list14601531[5])
8181 throw("List size exceed 5")
8282 }
8383 }
102102 func allowedAddrSponsoredFee (addr) = {
103103 let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",")
104104 let contain = {
105- let $list19842031 = addrsList
106- let $size19842031 = size($list19842031)
107- let $acc019842031 = toString(addr)
108- if (($size19842031 == 0))
109- then $acc019842031
105+ let $list19662013 = addrsList
106+ let $size19662013 = size($list19662013)
107+ let $acc019662013 = toString(addr)
108+ if (($size19662013 == 0))
109+ then $acc019662013
110110 else {
111- let $acc119842031 = containAddr($acc019842031, $list19842031[0])
112- if (($size19842031 == 1))
113- then $acc119842031
111+ let $acc119662013 = containAddr($acc019662013, $list19662013[0])
112+ if (($size19662013 == 1))
113+ then $acc119662013
114114 else {
115- let $acc219842031 = containAddr($acc119842031, $list19842031[1])
116- if (($size19842031 == 2))
117- then $acc219842031
115+ let $acc219662013 = containAddr($acc119662013, $list19662013[1])
116+ if (($size19662013 == 2))
117+ then $acc219662013
118118 else {
119- let $acc319842031 = containAddr($acc219842031, $list19842031[2])
120- if (($size19842031 == 3))
121- then $acc319842031
119+ let $acc319662013 = containAddr($acc219662013, $list19662013[2])
120+ if (($size19662013 == 3))
121+ then $acc319662013
122122 else {
123- let $acc419842031 = containAddr($acc319842031, $list19842031[3])
124- if (($size19842031 == 4))
125- then $acc419842031
123+ let $acc419662013 = containAddr($acc319662013, $list19662013[3])
124+ if (($size19662013 == 4))
125+ then $acc419662013
126126 else {
127- let $acc519842031 = containAddr($acc419842031, $list19842031[4])
128- if (($size19842031 == 5))
129- then $acc519842031
127+ let $acc519662013 = containAddr($acc419662013, $list19662013[4])
128+ if (($size19662013 == 5))
129+ then $acc519662013
130130 else {
131- let $acc619842031 = containAddr($acc519842031, $list19842031[5])
131+ let $acc619662013 = containAddr($acc519662013, $list19662013[5])
132132 throw("List size exceed 5")
133133 }
134134 }
160160 then throw("amount foi rejeitado")
161161 else if (price)
162162 then throw("price foi rejeitado")
163- else throw("não sei o que aconteceu")
163+ else throw("não sei o que é")
164164 case e: ExchangeTransaction =>
165165 true
166166 case burn: BurnTransaction =>
174174 case c: LeaseCancelTransaction =>
175175 verifier(this)
176176 case _ =>
177- false
177+ true
178178 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let NONE = "none"
44 let usersPubKey = base58'CH6NGp8BFPQ8gm6cPeVG9S3ZWp7m39eQnZU3eTdZgayU'
55 let usersAddr = addressFromPublicKey(usersPubKey)
66 let btns = base58'EGh2LufqeTEdihgaDz6iZosJtsyY98sqkHX2WP8Csnw4'
77 let btnf = base58'7xAHFCPLRSa7XfNNbnd9DMPd9SkgpNfrptFvE4pJE7J'
88 func verifier (account) = if ((account == this))
99 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1010 else sigVerify(tx.bodyBytes, tx.proofs[0], usersPubKey)
1111
1212 func getStrVar (key) = {
1313 let str = match key {
1414 case s: String =>
1515 s
1616 case b: Boolean =>
1717 toString(b)
1818 case i: Int =>
1919 toString(i)
2020 case bv: ByteVector =>
2121 toBase58String(bv)
2222 case ap: AssetPair =>
2323 ((toBase58String(extract(ap.amountAsset)) + ",") + toBase58String(extract(ap.priceAsset)))
2424 case u: Unit =>
2525 "empty"
2626 case _ =>
2727 NONE
2828 }
2929 str
3030 }
3131
3232 func containAddr (a,b) = {
3333 let addr = toString(addressFromPublicKey(fromBase58String(b)))
3434 if ((addr == a))
3535 then true
3636 else if (if ((a == true))
3737 then (addr != a)
3838 else false)
3939 then true
4040 else a
4141 }
4242
4343 func containTokenId (a,b) = if ((b == a))
4444 then true
4545 else if (if ((a == true))
4646 then (b != a)
4747 else false)
4848 then true
49- else throw(("trava em" + b))
49+ else a
5050
5151 func allowedTransferTokens (assetId) = {
5252 let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTransfers"), ",")
5353 let contain = {
54- let $list14781549 = tokensIdList
55- let $size14781549 = size($list14781549)
56- let $acc014781549 = toBase58String(extract(assetId))
57- if (($size14781549 == 0))
58- then $acc014781549
54+ let $list14601531 = tokensIdList
55+ let $size14601531 = size($list14601531)
56+ let $acc014601531 = toBase58String(extract(assetId))
57+ if (($size14601531 == 0))
58+ then $acc014601531
5959 else {
60- let $acc114781549 = containTokenId($acc014781549, $list14781549[0])
61- if (($size14781549 == 1))
62- then $acc114781549
60+ let $acc114601531 = containTokenId($acc014601531, $list14601531[0])
61+ if (($size14601531 == 1))
62+ then $acc114601531
6363 else {
64- let $acc214781549 = containTokenId($acc114781549, $list14781549[1])
65- if (($size14781549 == 2))
66- then $acc214781549
64+ let $acc214601531 = containTokenId($acc114601531, $list14601531[1])
65+ if (($size14601531 == 2))
66+ then $acc214601531
6767 else {
68- let $acc314781549 = containTokenId($acc214781549, $list14781549[2])
69- if (($size14781549 == 3))
70- then $acc314781549
68+ let $acc314601531 = containTokenId($acc214601531, $list14601531[2])
69+ if (($size14601531 == 3))
70+ then $acc314601531
7171 else {
72- let $acc414781549 = containTokenId($acc314781549, $list14781549[3])
73- if (($size14781549 == 4))
74- then $acc414781549
72+ let $acc414601531 = containTokenId($acc314601531, $list14601531[3])
73+ if (($size14601531 == 4))
74+ then $acc414601531
7575 else {
76- let $acc514781549 = containTokenId($acc414781549, $list14781549[4])
77- if (($size14781549 == 5))
78- then $acc514781549
76+ let $acc514601531 = containTokenId($acc414601531, $list14601531[4])
77+ if (($size14601531 == 5))
78+ then $acc514601531
7979 else {
80- let $acc614781549 = containTokenId($acc514781549, $list14781549[5])
80+ let $acc614601531 = containTokenId($acc514601531, $list14601531[5])
8181 throw("List size exceed 5")
8282 }
8383 }
8484 }
8585 }
8686 }
8787 }
8888 }
8989 if (!(isDefined(assetId)))
9090 then true
9191 else if (if (isDefined(assetId))
9292 then (contain == true)
9393 else false)
9494 then true
9595 else if (if (isDefined(assetId))
9696 then (contain != true)
9797 else false)
9898 then throw((("This token ID " + getStrVar(contain)) + " is not allowed to operate in this account"))
9999 else verifier(usersAddr)
100100 }
101101
102102 func allowedAddrSponsoredFee (addr) = {
103103 let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",")
104104 let contain = {
105- let $list19842031 = addrsList
106- let $size19842031 = size($list19842031)
107- let $acc019842031 = toString(addr)
108- if (($size19842031 == 0))
109- then $acc019842031
105+ let $list19662013 = addrsList
106+ let $size19662013 = size($list19662013)
107+ let $acc019662013 = toString(addr)
108+ if (($size19662013 == 0))
109+ then $acc019662013
110110 else {
111- let $acc119842031 = containAddr($acc019842031, $list19842031[0])
112- if (($size19842031 == 1))
113- then $acc119842031
111+ let $acc119662013 = containAddr($acc019662013, $list19662013[0])
112+ if (($size19662013 == 1))
113+ then $acc119662013
114114 else {
115- let $acc219842031 = containAddr($acc119842031, $list19842031[1])
116- if (($size19842031 == 2))
117- then $acc219842031
115+ let $acc219662013 = containAddr($acc119662013, $list19662013[1])
116+ if (($size19662013 == 2))
117+ then $acc219662013
118118 else {
119- let $acc319842031 = containAddr($acc219842031, $list19842031[2])
120- if (($size19842031 == 3))
121- then $acc319842031
119+ let $acc319662013 = containAddr($acc219662013, $list19662013[2])
120+ if (($size19662013 == 3))
121+ then $acc319662013
122122 else {
123- let $acc419842031 = containAddr($acc319842031, $list19842031[3])
124- if (($size19842031 == 4))
125- then $acc419842031
123+ let $acc419662013 = containAddr($acc319662013, $list19662013[3])
124+ if (($size19662013 == 4))
125+ then $acc419662013
126126 else {
127- let $acc519842031 = containAddr($acc419842031, $list19842031[4])
128- if (($size19842031 == 5))
129- then $acc519842031
127+ let $acc519662013 = containAddr($acc419662013, $list19662013[4])
128+ if (($size19662013 == 5))
129+ then $acc519662013
130130 else {
131- let $acc619842031 = containAddr($acc519842031, $list19842031[5])
131+ let $acc619662013 = containAddr($acc519662013, $list19662013[5])
132132 throw("List size exceed 5")
133133 }
134134 }
135135 }
136136 }
137137 }
138138 }
139139 }
140140 if ((contain != true))
141141 then throw((("This address " + getStrVar(contain)) + " is not allowed to operate with the BitNodes sponsored token"))
142142 else verifier(this)
143143 }
144144
145145 match tx {
146146 case t: TransferTransaction =>
147147 if (if ((t.assetId != btnf))
148148 then (t.feeAssetId != btnf)
149149 else false)
150150 then allowedTransferTokens(t.assetId)
151151 else if (if ((t.assetId == btnf))
152152 then true
153153 else (t.feeAssetId == btnf))
154154 then allowedAddrSponsoredFee(addressFromRecipient(t.recipient))
155155 else throw("Operação não autorizada para contas centralizadas na Plataforma BitNodes")
156156 case o: Order =>
157157 let amount = allowedTransferTokens(o.assetPair.amountAsset)
158158 let price = allowedTransferTokens(o.assetPair.priceAsset)
159159 if (!(amount))
160160 then throw("amount foi rejeitado")
161161 else if (price)
162162 then throw("price foi rejeitado")
163- else throw("não sei o que aconteceu")
163+ else throw("não sei o que é")
164164 case e: ExchangeTransaction =>
165165 true
166166 case burn: BurnTransaction =>
167167 verifier(usersAddr)
168168 case d: DataTransaction =>
169169 verifier(usersAddr)
170170 case s: SetScriptTransaction =>
171171 verifier(usersAddr)
172172 case l: LeaseTransaction =>
173173 allowedAddrSponsoredFee(addressFromRecipient(l.recipient))
174174 case c: LeaseCancelTransaction =>
175175 verifier(this)
176176 case _ =>
177- false
177+ true
178178 }

github/deemru/w8io/026f985 
54.52 ms