tx · 2TCNxaxD2F4XcTFBHzeDqXxNCjFQhHarFQd6wiq6EoLU

3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81:  -0.01400000 Waves

2020.08.11 07:27 [1127361] smart account 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81 > SELF 0.00000000 Waves

{ "type": 13, "id": "2TCNxaxD2F4XcTFBHzeDqXxNCjFQhHarFQd6wiq6EoLU", "fee": 1400000, "feeAssetId": null, "timestamp": 1597120046271, "version": 1, "sender": "3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81", "senderPublicKey": "7F9WJ2MEaCQTxjwqCQmL9jHicqJVc3uCmntzCMAK8yq6", "proofs": [ "3ejDrYHr8ByW9xwDYGxDwxAPbBqmUbE1jaTtT8qkS312R9boVf5vZqEVK2BbiJv9kNdrsZw67LDuQCW34x5kKy54" ], "script": "base64:AwQAAAAETk9ORQIAAAAEbm9uZQQAAAALdXNlcnNQdWJLZXkBAAAAIKeP6tgl4CP2PWCZbTcLVLGPExrT9u/W4PAFsxrOIcYHBAAAAAl1c2Vyc0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAC3VzZXJzUHViS2V5BAAAAARidG5zAQAAACDFLOWBobFDqtyu6bkFDRsq16C369fJHs5Bnyp0LEWdcwQAAAAEYnRuZgEAAAAgAcfavlePt+AR+muoBefYqFrjn0Oc5fUH1esIaonljXkKAQAAAAh2ZXJpZmllcgAAAAEAAAAHYWNjb3VudAMJAAAAAAAAAgUAAAAHYWNjb3VudAUAAAAEdGhpcwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAAB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QAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAABGJ1cm4FAAAAByRtYXRjaDAJAQAAAAh2ZXJpZmllcgAAAAEFAAAACXVzZXJzQWRkcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwCQEAAAAIdmVyaWZpZXIAAAABBQAAAAl1c2Vyc0FkZHIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQTGVhc2VUcmFuc2FjdGlvbgQAAAABbAUAAAAHJG1hdGNoMAkBAAAAF2FsbG93ZWRBZGRyU3BvbnNvcmVkRmVlAAAAAQkABCQAAAABCAUAAAABbAAAAAlyZWNpcGllbnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFkxlYXNlQ2FuY2VsVHJhbnNhY3Rpb24EAAAAAWMFAAAAByRtYXRjaDAJAQAAAAh2ZXJpZmllcgAAAAEFAAAABHRoaXMG3VzdTg==", "chainId": 84, "height": 1127361, "spentComplexity": 0 } View: original | compacted Prev: Ga6NZvN8CfZEgDpBTS1Ym2T8K5aezE1dhMHXXp8Uw85M Next: ETZmRw6FENvNaW2vVWmLEcP7ApHJ9ipA4ED3ghMVBaid Diff:
OldNewDifferences
144144 then allowedAddrSponsoredFee(addressFromRecipient(t.recipient))
145145 else throw("Operação não autorizada para contas centralizadas na Plataforma BitNodes")
146146 case o: Order =>
147- let price = allowedTransferTokens(o.assetPair.priceAsset)
148- if (!(price))
149- then true
150- else throw("price não foi reconhecido")
147+ let myprice = o.assetPair.priceAsset
148+ if (!(allowedTransferTokens(myprice)))
149+ then throw("price não foi reconhecido")
150+ else throw("price foi reconhecido")
151151 case e: ExchangeTransaction =>
152152 true
153153 case burn: BurnTransaction =>
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 _ =>
1717 NONE
1818 }
1919 str
2020 }
2121
2222 func containAddr (a,b) = {
2323 let addr = toString(addressFromPublicKey(fromBase58String(b)))
2424 if ((addr == a))
2525 then true
2626 else if (if ((a == true))
2727 then (addr != a)
2828 else false)
2929 then true
3030 else a
3131 }
3232
3333 func containTokenId (a,b) = if ((b == a))
3434 then true
3535 else if (if ((a == true))
3636 then (b != a)
3737 else false)
3838 then true
3939 else a
4040
4141 func allowedTransferTokens (assetId) = {
4242 let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTransfers"), ",")
4343 let contain = {
4444 let $list14651536 = tokensIdList
4545 let $size14651536 = size($list14651536)
4646 let $acc014651536 = toBase58String(extract(assetId))
4747 if (($size14651536 == 0))
4848 then $acc014651536
4949 else {
5050 let $acc114651536 = containTokenId($acc014651536, $list14651536[0])
5151 if (($size14651536 == 1))
5252 then $acc114651536
5353 else {
5454 let $acc214651536 = containTokenId($acc114651536, $list14651536[1])
5555 if (($size14651536 == 2))
5656 then $acc214651536
5757 else {
5858 let $acc314651536 = containTokenId($acc214651536, $list14651536[2])
5959 if (($size14651536 == 3))
6060 then $acc314651536
6161 else {
6262 let $acc414651536 = containTokenId($acc314651536, $list14651536[3])
6363 if (($size14651536 == 4))
6464 then $acc414651536
6565 else {
6666 let $acc514651536 = containTokenId($acc414651536, $list14651536[4])
6767 if (($size14651536 == 5))
6868 then $acc514651536
6969 else {
7070 let $acc614651536 = containTokenId($acc514651536, $list14651536[5])
7171 throw("List size exceed 5")
7272 }
7373 }
7474 }
7575 }
7676 }
7777 }
7878 }
7979 if (!(isDefined(assetId)))
8080 then true
8181 else if (if (isDefined(assetId))
8282 then (contain == true)
8383 else false)
8484 then true
8585 else if (if (isDefined(assetId))
8686 then (contain != true)
8787 else false)
8888 then throw((("This token ID " + getStrVar(contain)) + " is not allowed to operate in this account"))
8989 else verifier(usersAddr)
9090 }
9191
9292 func allowedAddrSponsoredFee (addr) = {
9393 let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",")
9494 let contain = {
9595 let $list19712018 = addrsList
9696 let $size19712018 = size($list19712018)
9797 let $acc019712018 = toString(addr)
9898 if (($size19712018 == 0))
9999 then $acc019712018
100100 else {
101101 let $acc119712018 = containAddr($acc019712018, $list19712018[0])
102102 if (($size19712018 == 1))
103103 then $acc119712018
104104 else {
105105 let $acc219712018 = containAddr($acc119712018, $list19712018[1])
106106 if (($size19712018 == 2))
107107 then $acc219712018
108108 else {
109109 let $acc319712018 = containAddr($acc219712018, $list19712018[2])
110110 if (($size19712018 == 3))
111111 then $acc319712018
112112 else {
113113 let $acc419712018 = containAddr($acc319712018, $list19712018[3])
114114 if (($size19712018 == 4))
115115 then $acc419712018
116116 else {
117117 let $acc519712018 = containAddr($acc419712018, $list19712018[4])
118118 if (($size19712018 == 5))
119119 then $acc519712018
120120 else {
121121 let $acc619712018 = containAddr($acc519712018, $list19712018[5])
122122 throw("List size exceed 5")
123123 }
124124 }
125125 }
126126 }
127127 }
128128 }
129129 }
130130 if ((contain != true))
131131 then throw((("This address " + getStrVar(contain)) + " is not allowed to operate with the BitNodes sponsored token"))
132132 else verifier(this)
133133 }
134134
135135 match tx {
136136 case t: TransferTransaction =>
137137 if (if ((t.assetId != btnf))
138138 then (t.feeAssetId != btnf)
139139 else false)
140140 then allowedTransferTokens(t.assetId)
141141 else if (if ((t.assetId == btnf))
142142 then true
143143 else (t.feeAssetId == btnf))
144144 then allowedAddrSponsoredFee(addressFromRecipient(t.recipient))
145145 else throw("Operação não autorizada para contas centralizadas na Plataforma BitNodes")
146146 case o: Order =>
147- let price = allowedTransferTokens(o.assetPair.priceAsset)
148- if (!(price))
149- then true
150- else throw("price não foi reconhecido")
147+ let myprice = o.assetPair.priceAsset
148+ if (!(allowedTransferTokens(myprice)))
149+ then throw("price não foi reconhecido")
150+ else throw("price foi reconhecido")
151151 case e: ExchangeTransaction =>
152152 true
153153 case burn: BurnTransaction =>
154154 verifier(usersAddr)
155155 case d: DataTransaction =>
156156 verifier(usersAddr)
157157 case s: SetScriptTransaction =>
158158 true
159159 case l: LeaseTransaction =>
160160 allowedAddrSponsoredFee(addressFromRecipient(l.recipient))
161161 case c: LeaseCancelTransaction =>
162162 verifier(this)
163163 case _ =>
164164 true
165165 }

github/deemru/w8io/169f3d6 
33.03 ms