tx · 4sGdn9ccxzz3DX2awKU7kZ7dkNr5mshxTfyzXSfeMH4K

3NBkfbAAqPqkY4d3LK36hdDUpDXViEAHfDE:  -0.01400000 Waves

2019.09.08 14:56 [667072] smart account 3NBkfbAAqPqkY4d3LK36hdDUpDXViEAHfDE > SELF 0.00000000 Waves

{ "type": 13, "id": "4sGdn9ccxzz3DX2awKU7kZ7dkNr5mshxTfyzXSfeMH4K", "fee": 1400000, "feeAssetId": null, "timestamp": 1567939971114, "version": 1, "sender": "3NBkfbAAqPqkY4d3LK36hdDUpDXViEAHfDE", "senderPublicKey": "FUCE44aWkQuFEKpfWRe3zoW8pGN2caDm1vqoK55FTnLP", "proofs": [ "5V5SzLWt7aZkgeCQGabBXcM74BKg7TsFonCYG39gWiz8PyyamiYLxWLny6Yg6BUZU4A2aQdGn9tsZhizRamKZYL1" ], "script": "base64:AAIDAAAAAAAAAAAAAAACAQAAABR2b3RlcklzQWxsb3dlZFRvVm90ZQAAAAEAAAAOdm90ZXJQdWJsaWNLZXkEAAAADGF1ZGl0b3Ixb3BlbgEAAAAgTOH7xS01EPXuKJWTnxxjNR2ezIws9jQx04+962nHjyQEAAAADGZhY3Rvcnkxb3BlbgEAAAAgmKQJPfQtwWEG3Uomcd12TJmvXUIMK+zQKCau0mej4h8DAwkBAAAAAiE9AAAAAgUAAAAOdm90ZXJQdWJsaWNLZXkFAAAADGF1ZGl0b3Ixb3BlbgkBAAAAAiE9AAAAAgUAAAAOdm90ZXJQdWJsaWNLZXkFAAAADGZhY3Rvcnkxb3BlbgcHBgEAAAAJaXNBdWRpdG9yAAAAAQAAAA52b3RlclB1YmxpY0tleQQAAAAMYXVkaXRvcjFvcGVuAQAAACBM4fvFLTUQ9e4olZOfHGM1HZ7MjCz2NDHTj73racePJAMJAQAAAAIhPQAAAAIFAAAADnZvdGVyUHVibGljS2V5BQAAAAxhdWRpdG9yMW9wZW4HBgAAAAIAAAABaQEAAAAEdm90ZQAAAAEAAAAHdGhlVm90ZQMJAQA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vtCx0LDQstC70Y/RgtGMINC00LDQvdC90YvQtSwg0LLRiyDQvdC1INC30LDQutCw0LfRh9C40LoJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAB2F1ZGl0b3IFAAAADGF1ZGl0b3Ixb3BlbgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAHZmFjdG9yeQUAAAAMZmFjdG9yeTFvcGVuBQAAAANuaWwAAAAAIvPqhg==", "chainId": 84, "height": 667072, "spentComplexity": 0 } View: original | compacted Prev: 13yXkvkpLf9h8jJRQaZBfyiTdV7yE4swJ6fFdP5icGbL Next: FJN1tPN1GjZNG3Ny5jc7GKVhsDkqWcsJu3FEVoX3yhMq Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
5- let c = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e'
6- let d = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x'
5+ let c = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
6+ let d = base58'BGr3aRnHxWYKViZ9AKkqE7CdczJtRGk2vCzbGF5mX7dp'
77 if (if ((b != c))
88 then (b != d)
99 else false)
1212 }
1313
1414
15-@Callable(e)
16-func vote (f) = if (!(a(e.callerPublicKey)))
17- then throw("Вы не можете голосовать, так как вас нет в списке голосующих!")
15+func e (b) = {
16+ let c = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
17+ if ((b != c))
18+ then false
19+ else true
20+ }
21+
22+
23+@Callable(f)
24+func vote (g) = if (!(a(f.callerPublicKey)))
25+ then throw("У вас нет прав доступа")
1826 else {
19- let g = getInteger(this, toBase58String(e.callerPublicKey))
20- if (isDefined(g))
21- then throw("Вы уже голосовали! Повтороное голосование запрещено.")
22- else WriteSet([DataEntry(toBase58String(e.callerPublicKey), f)])
27+ let h = getInteger(this, toBase58String(f.callerPublicKey))
28+ let i = getStringValue(this, "Auditor")
29+ let j = getStringValue(this, "Factory")
30+ if (isDefined(h))
31+ then throw("Ваша подпись уже поставлена")
32+ else WriteSet([DataEntry(toBase58String(f.callerPublicKey), g)])
2333 }
2434
2535
2636
27-@Callable(e)
28-func record (h) = {
29- let i = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
30- let j = base58'BGr3aRnHxWYKViZ9AKkqE7CdczJtRGk2vCzbGF5mX7dp'
31- let k = base58'FUCE44aWkQuFEKpfWRe3zoW8pGN2caDm1vqoK55FTnLP'
32- if ((e.callerPublicKey != k))
37+@Callable(f)
38+func record (k) = {
39+ let c = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
40+ let d = base58'BGr3aRnHxWYKViZ9AKkqE7CdczJtRGk2vCzbGF5mX7dp'
41+ let l = base58'FUCE44aWkQuFEKpfWRe3zoW8pGN2caDm1vqoK55FTnLP'
42+ if ((f.callerPublicKey != l))
3343 then throw("Вы не можете добавлять данные, вы не заказчик")
34- else WriteSet([DataEntry("auditor", i), DataEntry("factory", j)])
44+ else WriteSet([DataEntry("auditor", c), DataEntry("factory", d)])
3545 }
3646
3747
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
5- let c = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e'
6- let d = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x'
5+ let c = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
6+ let d = base58'BGr3aRnHxWYKViZ9AKkqE7CdczJtRGk2vCzbGF5mX7dp'
77 if (if ((b != c))
88 then (b != d)
99 else false)
1010 then false
1111 else true
1212 }
1313
1414
15-@Callable(e)
16-func vote (f) = if (!(a(e.callerPublicKey)))
17- then throw("Вы не можете голосовать, так как вас нет в списке голосующих!")
15+func e (b) = {
16+ let c = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
17+ if ((b != c))
18+ then false
19+ else true
20+ }
21+
22+
23+@Callable(f)
24+func vote (g) = if (!(a(f.callerPublicKey)))
25+ then throw("У вас нет прав доступа")
1826 else {
19- let g = getInteger(this, toBase58String(e.callerPublicKey))
20- if (isDefined(g))
21- then throw("Вы уже голосовали! Повтороное голосование запрещено.")
22- else WriteSet([DataEntry(toBase58String(e.callerPublicKey), f)])
27+ let h = getInteger(this, toBase58String(f.callerPublicKey))
28+ let i = getStringValue(this, "Auditor")
29+ let j = getStringValue(this, "Factory")
30+ if (isDefined(h))
31+ then throw("Ваша подпись уже поставлена")
32+ else WriteSet([DataEntry(toBase58String(f.callerPublicKey), g)])
2333 }
2434
2535
2636
27-@Callable(e)
28-func record (h) = {
29- let i = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
30- let j = base58'BGr3aRnHxWYKViZ9AKkqE7CdczJtRGk2vCzbGF5mX7dp'
31- let k = base58'FUCE44aWkQuFEKpfWRe3zoW8pGN2caDm1vqoK55FTnLP'
32- if ((e.callerPublicKey != k))
37+@Callable(f)
38+func record (k) = {
39+ let c = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
40+ let d = base58'BGr3aRnHxWYKViZ9AKkqE7CdczJtRGk2vCzbGF5mX7dp'
41+ let l = base58'FUCE44aWkQuFEKpfWRe3zoW8pGN2caDm1vqoK55FTnLP'
42+ if ((f.callerPublicKey != l))
3343 then throw("Вы не можете добавлять данные, вы не заказчик")
34- else WriteSet([DataEntry("auditor", i), DataEntry("factory", j)])
44+ else WriteSet([DataEntry("auditor", c), DataEntry("factory", d)])
3545 }
3646
3747

github/deemru/w8io/169f3d6 
33.98 ms