tx · GoCvFPTQytEgpYAoE3Jcv7konR3j3SMbvg9ACQcZmbke

3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81:  -0.01400000 Waves

2020.08.12 05:24 [1128710] smart account 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81 > SELF 0.00000000 Waves

{ "type": 13, "id": "GoCvFPTQytEgpYAoE3Jcv7konR3j3SMbvg9ACQcZmbke", "fee": 1400000, "feeAssetId": null, "timestamp": 1597199086206, "version": 1, "sender": "3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81", "senderPublicKey": "7F9WJ2MEaCQTxjwqCQmL9jHicqJVc3uCmntzCMAK8yq6", "proofs": [ "418Ty7L5RcrrhVsiWDQ7npTRwKo1qGK4Hs7T2nQwSzgRg1pn1hH29iFWTQQpxPkQqHXe7cWogHNBmFscDHqGHBhY" ], "script": "base64:AwQAAAAETk9ORQIAAAAEbm9uZQQAAAALdXNlcnNQdWJLZXkBAAAAIKeP6tgl4CP2PWCZbTcLVLGPExrT9u/W4PAFsxrOIcYHBAAAAAl1c2Vyc0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAC3VzZXJzUHViS2V5BAAAAARidG5zAQAAACDFLOWBobFDqtyu6bkFDRsq16C369fJHs5Bnyp0LEWdcwQAAAAEYnRuZgEAAAAgAcfavlePt+AR+muoBefYqFrjn0Oc5fUH1esIaonljXkKAQAAAAh2ZXJpZmllcgAAAAEAAAAHYWNjb3VudAMJAAAAAAAAAgUAAAAHYWNjb3VudAUAAAAEdGhpcwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQA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YW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAARidXJuBQAAAAckbWF0Y2gwCQEAAAAIdmVyaWZpZXIAAAABBQAAAAl1c2Vyc0FkZHIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkBAAAACHZlcmlmaWVyAAAAAQUAAAAJdXNlcnNBZGRyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABcwUAAAAHJG1hdGNoMAkBAAAACHZlcmlmaWVyAAAAAQUAAAAJdXNlcnNBZGRyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABBMZWFzZVRyYW5zYWN0aW9uBAAAAAFsBQAAAAckbWF0Y2gwCQEAAAAUYWxsb3dlZEFkZHJTcG9uc29yZWQAAAABCQAEJAAAAAEIBQAAAAFsAAAACXJlY2lwaWVudAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAWTGVhc2VDYW5jZWxUcmFuc2FjdGlvbgQAAAABYwUAAAAHJG1hdGNoMAkBAAAACHZlcmlmaWVyAAAAAQUAAAAEdGhpcwdCHcay", "chainId": 84, "height": 1128710, "spentComplexity": 0 } View: original | compacted Prev: 57bkVKYQgxc6KcccwU4GDNMB8DsUh2ysuu5P9tyWRmmr Next: none Diff:
OldNewDifferences
3838 then true
3939 else a
4040
41-func allowedTransferTokens (assetId) = {
42- let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTransfers"), ",")
41+func allowedTransactionTokens (assetId) = {
42+ let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTokenTransaction"), ",")
4343 let contain = {
44- let $list14641535 = tokensIdList
45- let $size14641535 = size($list14641535)
46- let $acc014641535 = toBase58String(extract(assetId))
47- if (($size14641535 == 0))
48- then $acc014641535
44+ let $list14741545 = tokensIdList
45+ let $size14741545 = size($list14741545)
46+ let $acc014741545 = toBase58String(extract(assetId))
47+ if (($size14741545 == 0))
48+ then $acc014741545
4949 else {
50- let $acc114641535 = containTokenId($acc014641535, $list14641535[0])
51- if (($size14641535 == 1))
52- then $acc114641535
50+ let $acc114741545 = containTokenId($acc014741545, $list14741545[0])
51+ if (($size14741545 == 1))
52+ then $acc114741545
5353 else {
54- let $acc214641535 = containTokenId($acc114641535, $list14641535[1])
55- if (($size14641535 == 2))
56- then $acc214641535
54+ let $acc214741545 = containTokenId($acc114741545, $list14741545[1])
55+ if (($size14741545 == 2))
56+ then $acc214741545
5757 else {
58- let $acc314641535 = containTokenId($acc214641535, $list14641535[2])
59- if (($size14641535 == 3))
60- then $acc314641535
58+ let $acc314741545 = containTokenId($acc214741545, $list14741545[2])
59+ if (($size14741545 == 3))
60+ then $acc314741545
6161 else {
62- let $acc414641535 = containTokenId($acc314641535, $list14641535[3])
63- if (($size14641535 == 4))
64- then $acc414641535
62+ let $acc414741545 = containTokenId($acc314741545, $list14741545[3])
63+ if (($size14741545 == 4))
64+ then $acc414741545
6565 else {
66- let $acc514641535 = containTokenId($acc414641535, $list14641535[4])
67- if (($size14641535 == 5))
68- then $acc514641535
66+ let $acc514741545 = containTokenId($acc414741545, $list14741545[4])
67+ if (($size14741545 == 5))
68+ then $acc514741545
6969 else {
70- let $acc614641535 = containTokenId($acc514641535, $list14641535[5])
70+ let $acc614741545 = containTokenId($acc514741545, $list14741545[5])
7171 throw("List size exceed 5")
7272 }
7373 }
8989 else verifier(usersAddr)
9090 }
9191
92-func allowedAddrSponsoredFee (addr) = {
93- let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",")
92+func allowedAddrSponsored (addr) = {
93+ let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorsAddr"), ",")
9494 let contain = {
95- let $list19702017 = addrsList
96- let $size19702017 = size($list19702017)
97- let $acc019702017 = toString(addr)
98- if (($size19702017 == 0))
99- then $acc019702017
95+ let $list19792026 = addrsList
96+ let $size19792026 = size($list19792026)
97+ let $acc019792026 = toString(addr)
98+ if (($size19792026 == 0))
99+ then $acc019792026
100100 else {
101- let $acc119702017 = containAddr($acc019702017, $list19702017[0])
102- if (($size19702017 == 1))
103- then $acc119702017
101+ let $acc119792026 = containAddr($acc019792026, $list19792026[0])
102+ if (($size19792026 == 1))
103+ then $acc119792026
104104 else {
105- let $acc219702017 = containAddr($acc119702017, $list19702017[1])
106- if (($size19702017 == 2))
107- then $acc219702017
105+ let $acc219792026 = containAddr($acc119792026, $list19792026[1])
106+ if (($size19792026 == 2))
107+ then $acc219792026
108108 else {
109- let $acc319702017 = containAddr($acc219702017, $list19702017[2])
110- if (($size19702017 == 3))
111- then $acc319702017
109+ let $acc319792026 = containAddr($acc219792026, $list19792026[2])
110+ if (($size19792026 == 3))
111+ then $acc319792026
112112 else {
113- let $acc419702017 = containAddr($acc319702017, $list19702017[3])
114- if (($size19702017 == 4))
115- then $acc419702017
113+ let $acc419792026 = containAddr($acc319792026, $list19792026[3])
114+ if (($size19792026 == 4))
115+ then $acc419792026
116116 else {
117- let $acc519702017 = containAddr($acc419702017, $list19702017[4])
118- if (($size19702017 == 5))
119- then $acc519702017
117+ let $acc519792026 = containAddr($acc419792026, $list19792026[4])
118+ if (($size19792026 == 5))
119+ then $acc519792026
120120 else {
121- let $acc619702017 = containAddr($acc519702017, $list19702017[5])
121+ let $acc619792026 = containAddr($acc519792026, $list19792026[5])
122122 throw("List size exceed 5")
123123 }
124124 }
137137 if (if ((t.assetId != btnf))
138138 then (t.feeAssetId != btnf)
139139 else false)
140- then allowedTransferTokens(t.assetId)
140+ then allowedTransactionTokens(t.assetId)
141141 else if (if ((t.assetId == btnf))
142142 then true
143143 else (t.feeAssetId == btnf))
144- then allowedAddrSponsoredFee(addressFromRecipient(t.recipient))
144+ then allowedAddrSponsored(addressFromRecipient(t.recipient))
145145 else throw("Operação não autorizada para contas centralizadas na Plataforma BitNodes")
146+ case ist: InvokeScriptTransaction =>
147+ allowedAddrSponsored(addressFromRecipient(ist.dApp))
146148 case o: Order =>
147149 false
148150 case e: ExchangeTransaction =>
154156 case s: SetScriptTransaction =>
155157 verifier(usersAddr)
156158 case l: LeaseTransaction =>
157- allowedAddrSponsoredFee(addressFromRecipient(l.recipient))
159+ allowedAddrSponsored(addressFromRecipient(l.recipient))
158160 case c: LeaseCancelTransaction =>
159161 verifier(this)
160162 case _ =>
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
41-func allowedTransferTokens (assetId) = {
42- let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTransfers"), ",")
41+func allowedTransactionTokens (assetId) = {
42+ let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTokenTransaction"), ",")
4343 let contain = {
44- let $list14641535 = tokensIdList
45- let $size14641535 = size($list14641535)
46- let $acc014641535 = toBase58String(extract(assetId))
47- if (($size14641535 == 0))
48- then $acc014641535
44+ let $list14741545 = tokensIdList
45+ let $size14741545 = size($list14741545)
46+ let $acc014741545 = toBase58String(extract(assetId))
47+ if (($size14741545 == 0))
48+ then $acc014741545
4949 else {
50- let $acc114641535 = containTokenId($acc014641535, $list14641535[0])
51- if (($size14641535 == 1))
52- then $acc114641535
50+ let $acc114741545 = containTokenId($acc014741545, $list14741545[0])
51+ if (($size14741545 == 1))
52+ then $acc114741545
5353 else {
54- let $acc214641535 = containTokenId($acc114641535, $list14641535[1])
55- if (($size14641535 == 2))
56- then $acc214641535
54+ let $acc214741545 = containTokenId($acc114741545, $list14741545[1])
55+ if (($size14741545 == 2))
56+ then $acc214741545
5757 else {
58- let $acc314641535 = containTokenId($acc214641535, $list14641535[2])
59- if (($size14641535 == 3))
60- then $acc314641535
58+ let $acc314741545 = containTokenId($acc214741545, $list14741545[2])
59+ if (($size14741545 == 3))
60+ then $acc314741545
6161 else {
62- let $acc414641535 = containTokenId($acc314641535, $list14641535[3])
63- if (($size14641535 == 4))
64- then $acc414641535
62+ let $acc414741545 = containTokenId($acc314741545, $list14741545[3])
63+ if (($size14741545 == 4))
64+ then $acc414741545
6565 else {
66- let $acc514641535 = containTokenId($acc414641535, $list14641535[4])
67- if (($size14641535 == 5))
68- then $acc514641535
66+ let $acc514741545 = containTokenId($acc414741545, $list14741545[4])
67+ if (($size14741545 == 5))
68+ then $acc514741545
6969 else {
70- let $acc614641535 = containTokenId($acc514641535, $list14641535[5])
70+ let $acc614741545 = containTokenId($acc514741545, $list14741545[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
92-func allowedAddrSponsoredFee (addr) = {
93- let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",")
92+func allowedAddrSponsored (addr) = {
93+ let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorsAddr"), ",")
9494 let contain = {
95- let $list19702017 = addrsList
96- let $size19702017 = size($list19702017)
97- let $acc019702017 = toString(addr)
98- if (($size19702017 == 0))
99- then $acc019702017
95+ let $list19792026 = addrsList
96+ let $size19792026 = size($list19792026)
97+ let $acc019792026 = toString(addr)
98+ if (($size19792026 == 0))
99+ then $acc019792026
100100 else {
101- let $acc119702017 = containAddr($acc019702017, $list19702017[0])
102- if (($size19702017 == 1))
103- then $acc119702017
101+ let $acc119792026 = containAddr($acc019792026, $list19792026[0])
102+ if (($size19792026 == 1))
103+ then $acc119792026
104104 else {
105- let $acc219702017 = containAddr($acc119702017, $list19702017[1])
106- if (($size19702017 == 2))
107- then $acc219702017
105+ let $acc219792026 = containAddr($acc119792026, $list19792026[1])
106+ if (($size19792026 == 2))
107+ then $acc219792026
108108 else {
109- let $acc319702017 = containAddr($acc219702017, $list19702017[2])
110- if (($size19702017 == 3))
111- then $acc319702017
109+ let $acc319792026 = containAddr($acc219792026, $list19792026[2])
110+ if (($size19792026 == 3))
111+ then $acc319792026
112112 else {
113- let $acc419702017 = containAddr($acc319702017, $list19702017[3])
114- if (($size19702017 == 4))
115- then $acc419702017
113+ let $acc419792026 = containAddr($acc319792026, $list19792026[3])
114+ if (($size19792026 == 4))
115+ then $acc419792026
116116 else {
117- let $acc519702017 = containAddr($acc419702017, $list19702017[4])
118- if (($size19702017 == 5))
119- then $acc519702017
117+ let $acc519792026 = containAddr($acc419792026, $list19792026[4])
118+ if (($size19792026 == 5))
119+ then $acc519792026
120120 else {
121- let $acc619702017 = containAddr($acc519702017, $list19702017[5])
121+ let $acc619792026 = containAddr($acc519792026, $list19792026[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)
140- then allowedTransferTokens(t.assetId)
140+ then allowedTransactionTokens(t.assetId)
141141 else if (if ((t.assetId == btnf))
142142 then true
143143 else (t.feeAssetId == btnf))
144- then allowedAddrSponsoredFee(addressFromRecipient(t.recipient))
144+ then allowedAddrSponsored(addressFromRecipient(t.recipient))
145145 else throw("Operação não autorizada para contas centralizadas na Plataforma BitNodes")
146+ case ist: InvokeScriptTransaction =>
147+ allowedAddrSponsored(addressFromRecipient(ist.dApp))
146148 case o: Order =>
147149 false
148150 case e: ExchangeTransaction =>
149151 false
150152 case burn: BurnTransaction =>
151153 verifier(usersAddr)
152154 case d: DataTransaction =>
153155 verifier(usersAddr)
154156 case s: SetScriptTransaction =>
155157 verifier(usersAddr)
156158 case l: LeaseTransaction =>
157- allowedAddrSponsoredFee(addressFromRecipient(l.recipient))
159+ allowedAddrSponsored(addressFromRecipient(l.recipient))
158160 case c: LeaseCancelTransaction =>
159161 verifier(this)
160162 case _ =>
161163 false
162164 }

github/deemru/w8io/169f3d6 
85.74 ms