tx · 4SWwXtmY3A31DFUFDLUrv9TD5fnd4zfDqqM9V4qUAqzz 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81: -0.01400000 Waves 2020.08.11 08:25 [1127420] smart account 3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81 > SELF 0.00000000 Waves
{ "type": 13, "id": "4SWwXtmY3A31DFUFDLUrv9TD5fnd4zfDqqM9V4qUAqzz", "fee": 1400000, "feeAssetId": null, "timestamp": 1597123566383, "version": 1, "sender": "3Mx66EFd8iB1tZ6vu7Xx5GMkzbKQc3Nrw81", "senderPublicKey": "7F9WJ2MEaCQTxjwqCQmL9jHicqJVc3uCmntzCMAK8yq6", "proofs": [ "4mX3uackHALDzc1y5Y9eBDLamFt6ppLYbvnAmz1XopW6GUhQwkNj3ikYPVbZp6i1GhkKXFzfr2dSWAyUNmo92eTG" ], "script": "base64:AwQAAAAETk9ORQIAAAAEbm9uZQQAAAALdXNlcnNQdWJLZXkBAAAAIKeP6tgl4CP2PWCZbTcLVLGPExrT9u/W4PAFsxrOIcYHBAAAAAl1c2Vyc0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAC3VzZXJzUHViS2V5BAAAAARidG5zAQAAACDFLOWBobFDqtyu6bkFDRsq16C369fJHs5Bnyp0LEWdcwQAAAAEYnRuZgEAAAAgAcfavlePt+AR+muoBefYqFrjn0Oc5fUH1esIaonljXkKAQAAAAh2ZXJpZmllcgAAAAEAAAAHYWNjb3VudAMJAAAAAAAAAgUAAAAHYWNjb3VudAUAAAAEdGhpcwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAAB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AIdmVyaWZpZXIAAAABBQAAAAl1c2Vyc0FkZHIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQTGVhc2VUcmFuc2FjdGlvbgQAAAABbAUAAAAHJG1hdGNoMAkBAAAAF2FsbG93ZWRBZGRyU3BvbnNvcmVkRmVlAAAAAQkABCQAAAABCAUAAAABbAAAAAlyZWNpcGllbnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFkxlYXNlQ2FuY2VsVHJhbnNhY3Rpb24EAAAAAWMFAAAAByRtYXRjaDAJAQAAAAh2ZXJpZmllcgAAAAEFAAAABHRoaXMGcuO+0Q==", "chainId": 84, "height": 1127420, "spentComplexity": 0 } View: original | compacted Prev: HkPE6MeuebZAoPd8JweR5WUCuuv2JhhHY2mP39UDwizh Next: GZTjYRea7NaHTzRsBmrA8VT98Fes96EK8drqQBwKC7fS Diff:
Old | New | Differences | |
---|---|---|---|
82 | 82 | then (contain == true) | |
83 | 83 | else false) | |
84 | 84 | then true | |
85 | - | else | |
85 | + | else true | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | func allowedAddrSponsoredFee (addr) = { | |
89 | 89 | let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",") | |
90 | 90 | let contain = { | |
91 | - | let $ | |
92 | - | let $ | |
93 | - | let $ | |
94 | - | if (($ | |
95 | - | then $ | |
91 | + | let $list19572004 = addrsList | |
92 | + | let $size19572004 = size($list19572004) | |
93 | + | let $acc019572004 = toString(addr) | |
94 | + | if (($size19572004 == 0)) | |
95 | + | then $acc019572004 | |
96 | 96 | else { | |
97 | - | let $ | |
98 | - | if (($ | |
99 | - | then $ | |
97 | + | let $acc119572004 = containAddr($acc019572004, $list19572004[0]) | |
98 | + | if (($size19572004 == 1)) | |
99 | + | then $acc119572004 | |
100 | 100 | else { | |
101 | - | let $ | |
102 | - | if (($ | |
103 | - | then $ | |
101 | + | let $acc219572004 = containAddr($acc119572004, $list19572004[1]) | |
102 | + | if (($size19572004 == 2)) | |
103 | + | then $acc219572004 | |
104 | 104 | else { | |
105 | - | let $ | |
106 | - | if (($ | |
107 | - | then $ | |
105 | + | let $acc319572004 = containAddr($acc219572004, $list19572004[2]) | |
106 | + | if (($size19572004 == 3)) | |
107 | + | then $acc319572004 | |
108 | 108 | else { | |
109 | - | let $ | |
110 | - | if (($ | |
111 | - | then $ | |
109 | + | let $acc419572004 = containAddr($acc319572004, $list19572004[3]) | |
110 | + | if (($size19572004 == 4)) | |
111 | + | then $acc419572004 | |
112 | 112 | else { | |
113 | - | let $ | |
114 | - | if (($ | |
115 | - | then $ | |
113 | + | let $acc519572004 = containAddr($acc419572004, $list19572004[4]) | |
114 | + | if (($size19572004 == 5)) | |
115 | + | then $acc519572004 | |
116 | 116 | else { | |
117 | - | let $ | |
117 | + | let $acc619572004 = containAddr($acc519572004, $list19572004[5]) | |
118 | 118 | throw("List size exceed 5") | |
119 | 119 | } | |
120 | 120 | } |
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 _ => | |
17 | 17 | NONE | |
18 | 18 | } | |
19 | 19 | str | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | func containAddr (a,b) = { | |
23 | 23 | let addr = toString(addressFromPublicKey(fromBase58String(b))) | |
24 | 24 | if ((addr == a)) | |
25 | 25 | then true | |
26 | 26 | else if (if ((a == true)) | |
27 | 27 | then (addr != a) | |
28 | 28 | else false) | |
29 | 29 | then true | |
30 | 30 | else a | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | func containTokenId (a,b) = if ((b == a)) | |
34 | 34 | then true | |
35 | 35 | else if (if ((a == true)) | |
36 | 36 | then (b != a) | |
37 | 37 | else false) | |
38 | 38 | then true | |
39 | 39 | else a | |
40 | 40 | ||
41 | 41 | func allowedTransferTokens (assetId) = { | |
42 | 42 | let tokensIdList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedTransfers"), ",") | |
43 | 43 | let contain = { | |
44 | 44 | let $list14651536 = tokensIdList | |
45 | 45 | let $size14651536 = size($list14651536) | |
46 | 46 | let $acc014651536 = toBase58String(extract(assetId)) | |
47 | 47 | if (($size14651536 == 0)) | |
48 | 48 | then $acc014651536 | |
49 | 49 | else { | |
50 | 50 | let $acc114651536 = containTokenId($acc014651536, $list14651536[0]) | |
51 | 51 | if (($size14651536 == 1)) | |
52 | 52 | then $acc114651536 | |
53 | 53 | else { | |
54 | 54 | let $acc214651536 = containTokenId($acc114651536, $list14651536[1]) | |
55 | 55 | if (($size14651536 == 2)) | |
56 | 56 | then $acc214651536 | |
57 | 57 | else { | |
58 | 58 | let $acc314651536 = containTokenId($acc214651536, $list14651536[2]) | |
59 | 59 | if (($size14651536 == 3)) | |
60 | 60 | then $acc314651536 | |
61 | 61 | else { | |
62 | 62 | let $acc414651536 = containTokenId($acc314651536, $list14651536[3]) | |
63 | 63 | if (($size14651536 == 4)) | |
64 | 64 | then $acc414651536 | |
65 | 65 | else { | |
66 | 66 | let $acc514651536 = containTokenId($acc414651536, $list14651536[4]) | |
67 | 67 | if (($size14651536 == 5)) | |
68 | 68 | then $acc514651536 | |
69 | 69 | else { | |
70 | 70 | let $acc614651536 = containTokenId($acc514651536, $list14651536[5]) | |
71 | 71 | throw("List size exceed 5") | |
72 | 72 | } | |
73 | 73 | } | |
74 | 74 | } | |
75 | 75 | } | |
76 | 76 | } | |
77 | 77 | } | |
78 | 78 | } | |
79 | 79 | if (!(isDefined(assetId))) | |
80 | 80 | then true | |
81 | 81 | else if (if (isDefined(assetId)) | |
82 | 82 | then (contain == true) | |
83 | 83 | else false) | |
84 | 84 | then true | |
85 | - | else | |
85 | + | else true | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | func allowedAddrSponsoredFee (addr) = { | |
89 | 89 | let addrsList = split(getStringValue(addressFromPublicKey(usersPubKey), "allowedSponsorFee"), ",") | |
90 | 90 | let contain = { | |
91 | - | let $ | |
92 | - | let $ | |
93 | - | let $ | |
94 | - | if (($ | |
95 | - | then $ | |
91 | + | let $list19572004 = addrsList | |
92 | + | let $size19572004 = size($list19572004) | |
93 | + | let $acc019572004 = toString(addr) | |
94 | + | if (($size19572004 == 0)) | |
95 | + | then $acc019572004 | |
96 | 96 | else { | |
97 | - | let $ | |
98 | - | if (($ | |
99 | - | then $ | |
97 | + | let $acc119572004 = containAddr($acc019572004, $list19572004[0]) | |
98 | + | if (($size19572004 == 1)) | |
99 | + | then $acc119572004 | |
100 | 100 | else { | |
101 | - | let $ | |
102 | - | if (($ | |
103 | - | then $ | |
101 | + | let $acc219572004 = containAddr($acc119572004, $list19572004[1]) | |
102 | + | if (($size19572004 == 2)) | |
103 | + | then $acc219572004 | |
104 | 104 | else { | |
105 | - | let $ | |
106 | - | if (($ | |
107 | - | then $ | |
105 | + | let $acc319572004 = containAddr($acc219572004, $list19572004[2]) | |
106 | + | if (($size19572004 == 3)) | |
107 | + | then $acc319572004 | |
108 | 108 | else { | |
109 | - | let $ | |
110 | - | if (($ | |
111 | - | then $ | |
109 | + | let $acc419572004 = containAddr($acc319572004, $list19572004[3]) | |
110 | + | if (($size19572004 == 4)) | |
111 | + | then $acc419572004 | |
112 | 112 | else { | |
113 | - | let $ | |
114 | - | if (($ | |
115 | - | then $ | |
113 | + | let $acc519572004 = containAddr($acc419572004, $list19572004[4]) | |
114 | + | if (($size19572004 == 5)) | |
115 | + | then $acc519572004 | |
116 | 116 | else { | |
117 | - | let $ | |
117 | + | let $acc619572004 = containAddr($acc519572004, $list19572004[5]) | |
118 | 118 | throw("List size exceed 5") | |
119 | 119 | } | |
120 | 120 | } | |
121 | 121 | } | |
122 | 122 | } | |
123 | 123 | } | |
124 | 124 | } | |
125 | 125 | } | |
126 | 126 | if ((contain != true)) | |
127 | 127 | then throw((("This address " + getStrVar(contain)) + " is not allowed to operate with the BitNodes sponsored token")) | |
128 | 128 | else verifier(this) | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | match tx { | |
132 | 132 | case t: TransferTransaction => | |
133 | 133 | if (if ((t.assetId != btnf)) | |
134 | 134 | then (t.feeAssetId != btnf) | |
135 | 135 | else false) | |
136 | 136 | then allowedTransferTokens(t.assetId) | |
137 | 137 | else if (if ((t.assetId == btnf)) | |
138 | 138 | then true | |
139 | 139 | else (t.feeAssetId == btnf)) | |
140 | 140 | then allowedAddrSponsoredFee(addressFromRecipient(t.recipient)) | |
141 | 141 | else throw("Operação não autorizada para contas centralizadas na Plataforma BitNodes") | |
142 | 142 | case o: Order => | |
143 | 143 | let myamount = toBase58String(extract(o.assetPair.amountAsset)) | |
144 | 144 | let amount = allowedTransferTokens(fromBase58String(myamount)) | |
145 | 145 | throw(toString(amount)) | |
146 | 146 | case e: ExchangeTransaction => | |
147 | 147 | true | |
148 | 148 | case burn: BurnTransaction => | |
149 | 149 | verifier(usersAddr) | |
150 | 150 | case d: DataTransaction => | |
151 | 151 | verifier(usersAddr) | |
152 | 152 | case s: SetScriptTransaction => | |
153 | 153 | true | |
154 | 154 | case l: LeaseTransaction => | |
155 | 155 | allowedAddrSponsoredFee(addressFromRecipient(l.recipient)) | |
156 | 156 | case c: LeaseCancelTransaction => | |
157 | 157 | verifier(this) | |
158 | 158 | case _ => | |
159 | 159 | true | |
160 | 160 | } |
github/deemru/w8io/169f3d6 64.92 ms ◑