tx · 5twJFXGwSjpeDxaLD8gjfhJoQMTWHszECnAqH2gQK2Hs

3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81:  -0.01400000 Waves

2020.08.11 06:11 [1127289] smart account 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81 > SELF 0.00000000 Waves

{ "type": 13, "id": "5twJFXGwSjpeDxaLD8gjfhJoQMTWHszECnAqH2gQK2Hs", "fee": 1400000, "feeAssetId": null, "timestamp": 1597115478908, "version": 1, "sender": "3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81", "senderPublicKey": "7F9WJ2MEaCQTxjwqCQmL9jHicqJVc3uCmntzCMAK8yq6", "proofs": [ "5fJUb2F4VC318VTNagucKMcEv87qFpyBJgeyjg9HbwJ7WvbYfya7ySYgYUo52tU9PrTcX8GYu22MA7ffWWG214Qr" ], "script": "base64:AwQAAAAETk9ORQIAAAAEbm9uZQQAAAALdXNlcnNQdWJLZXkBAAAAIKeP6tgl4CP2PWCZbTcLVLGPExrT9u/W4PAFsxrOIcYHBAAAAAl1c2Vyc0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAC3VzZXJzUHViS2V5BAAAAARidG5zAQAAACDFLOWBobFDqtyu6bkFDRsq16C369fJHs5Bnyp0LEWdcwQAAAAEYnRuZgEAAAAgAcfavlePt+AR+muoBefYqFrjn0Oc5fUH1esIaonljXkKAQAAAAh2ZXJpZmllcgAAAAEAAAAHYWNjb3VudAMJAAAAAAAAAgUAAAAHYWNjb3VudAUAAAAEdGhpcwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAA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0FkZHIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwCQEAAAAIdmVyaWZpZXIAAAABBQAAAAl1c2Vyc0FkZHIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAEExlYXNlVHJhbnNhY3Rpb24EAAAAAWwFAAAAByRtYXRjaDAJAQAAABdhbGxvd2VkQWRkclNwb25zb3JlZEZlZQAAAAEJAAQkAAAAAQgFAAAAAWwAAAAJcmVjaXBpZW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABZMZWFzZUNhbmNlbFRyYW5zYWN0aW9uBAAAAAFjBQAAAAckbWF0Y2gwCQEAAAAIdmVyaWZpZXIAAAABBQAAAAR0aGlzB9zhQPA=", "chainId": 84, "height": 1127289, "spentComplexity": 0 } View: original | compacted Prev: GbjfMtJxRb2YSh2RmGkHaY9MENYp7NoNLbGdte5NQamV Next: HKLmM8p6j2TP74trwWfbvXHtHMQb7VHsqrF7A7hnU3Dz Diff:
OldNewDifferences
9696 then (contain != true)
9797 else false)
9898 then throw((("This token ID " + getStrVar(contain)) + " is not allowed to operate in this account"))
99- else verifier(usersAddr)
99+ else verifier(this)
100100 }
101101
102102 func allowedAddrSponsoredFee (addr) = {
103103 let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",")
104104 let contain = {
105- let $list19662013 = addrsList
106- let $size19662013 = size($list19662013)
107- let $acc019662013 = toString(addr)
108- if (($size19662013 == 0))
109- then $acc019662013
105+ let $list19612008 = addrsList
106+ let $size19612008 = size($list19612008)
107+ let $acc019612008 = toString(addr)
108+ if (($size19612008 == 0))
109+ then $acc019612008
110110 else {
111- let $acc119662013 = containAddr($acc019662013, $list19662013[0])
112- if (($size19662013 == 1))
113- then $acc119662013
111+ let $acc119612008 = containAddr($acc019612008, $list19612008[0])
112+ if (($size19612008 == 1))
113+ then $acc119612008
114114 else {
115- let $acc219662013 = containAddr($acc119662013, $list19662013[1])
116- if (($size19662013 == 2))
117- then $acc219662013
115+ let $acc219612008 = containAddr($acc119612008, $list19612008[1])
116+ if (($size19612008 == 2))
117+ then $acc219612008
118118 else {
119- let $acc319662013 = containAddr($acc219662013, $list19662013[2])
120- if (($size19662013 == 3))
121- then $acc319662013
119+ let $acc319612008 = containAddr($acc219612008, $list19612008[2])
120+ if (($size19612008 == 3))
121+ then $acc319612008
122122 else {
123- let $acc419662013 = containAddr($acc319662013, $list19662013[3])
124- if (($size19662013 == 4))
125- then $acc419662013
123+ let $acc419612008 = containAddr($acc319612008, $list19612008[3])
124+ if (($size19612008 == 4))
125+ then $acc419612008
126126 else {
127- let $acc519662013 = containAddr($acc419662013, $list19662013[4])
128- if (($size19662013 == 5))
129- then $acc519662013
127+ let $acc519612008 = containAddr($acc419612008, $list19612008[4])
128+ if (($size19612008 == 5))
129+ then $acc519612008
130130 else {
131- let $acc619662013 = containAddr($acc519662013, $list19662013[5])
131+ let $acc619612008 = containAddr($acc519612008, $list19612008[5])
132132 throw("List size exceed 5")
133133 }
134134 }
158158 let price = allowedTransferTokens(o.assetPair.priceAsset)
159159 if (!(amount))
160160 then throw("amount foi rejeitado")
161- else if (price)
161+ else if (!(price))
162162 then throw("price foi rejeitado")
163163 else throw("não sei o que aconteceu")
164164 case e: ExchangeTransaction =>
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
4949 else a
5050
5151 func allowedTransferTokens (assetId) = {
5252 let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTransfers"), ",")
5353 let contain = {
5454 let $list14601531 = tokensIdList
5555 let $size14601531 = size($list14601531)
5656 let $acc014601531 = toBase58String(extract(assetId))
5757 if (($size14601531 == 0))
5858 then $acc014601531
5959 else {
6060 let $acc114601531 = containTokenId($acc014601531, $list14601531[0])
6161 if (($size14601531 == 1))
6262 then $acc114601531
6363 else {
6464 let $acc214601531 = containTokenId($acc114601531, $list14601531[1])
6565 if (($size14601531 == 2))
6666 then $acc214601531
6767 else {
6868 let $acc314601531 = containTokenId($acc214601531, $list14601531[2])
6969 if (($size14601531 == 3))
7070 then $acc314601531
7171 else {
7272 let $acc414601531 = containTokenId($acc314601531, $list14601531[3])
7373 if (($size14601531 == 4))
7474 then $acc414601531
7575 else {
7676 let $acc514601531 = containTokenId($acc414601531, $list14601531[4])
7777 if (($size14601531 == 5))
7878 then $acc514601531
7979 else {
8080 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"))
99- else verifier(usersAddr)
99+ else verifier(this)
100100 }
101101
102102 func allowedAddrSponsoredFee (addr) = {
103103 let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",")
104104 let contain = {
105- let $list19662013 = addrsList
106- let $size19662013 = size($list19662013)
107- let $acc019662013 = toString(addr)
108- if (($size19662013 == 0))
109- then $acc019662013
105+ let $list19612008 = addrsList
106+ let $size19612008 = size($list19612008)
107+ let $acc019612008 = toString(addr)
108+ if (($size19612008 == 0))
109+ then $acc019612008
110110 else {
111- let $acc119662013 = containAddr($acc019662013, $list19662013[0])
112- if (($size19662013 == 1))
113- then $acc119662013
111+ let $acc119612008 = containAddr($acc019612008, $list19612008[0])
112+ if (($size19612008 == 1))
113+ then $acc119612008
114114 else {
115- let $acc219662013 = containAddr($acc119662013, $list19662013[1])
116- if (($size19662013 == 2))
117- then $acc219662013
115+ let $acc219612008 = containAddr($acc119612008, $list19612008[1])
116+ if (($size19612008 == 2))
117+ then $acc219612008
118118 else {
119- let $acc319662013 = containAddr($acc219662013, $list19662013[2])
120- if (($size19662013 == 3))
121- then $acc319662013
119+ let $acc319612008 = containAddr($acc219612008, $list19612008[2])
120+ if (($size19612008 == 3))
121+ then $acc319612008
122122 else {
123- let $acc419662013 = containAddr($acc319662013, $list19662013[3])
124- if (($size19662013 == 4))
125- then $acc419662013
123+ let $acc419612008 = containAddr($acc319612008, $list19612008[3])
124+ if (($size19612008 == 4))
125+ then $acc419612008
126126 else {
127- let $acc519662013 = containAddr($acc419662013, $list19662013[4])
128- if (($size19662013 == 5))
129- then $acc519662013
127+ let $acc519612008 = containAddr($acc419612008, $list19612008[4])
128+ if (($size19612008 == 5))
129+ then $acc519612008
130130 else {
131- let $acc619662013 = containAddr($acc519662013, $list19662013[5])
131+ let $acc619612008 = containAddr($acc519612008, $list19612008[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")
161- else if (price)
161+ else if (!(price))
162162 then throw("price foi rejeitado")
163163 else throw("não sei o que aconteceu")
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 _ =>
177177 false
178178 }

github/deemru/w8io/169f3d6 
43.65 ms