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 voterIsAllowedToVote (voterPublicKey) = {
5- let alekseiPubKey = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e'
6- let annaPubKey = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x'
7- if (if ((voterPublicKey != alekseiPubKey))
8- then (voterPublicKey != annaPubKey)
5+ let auditor1open = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
6+ let factory1open = base58'BGr3aRnHxWYKViZ9AKkqE7CdczJtRGk2vCzbGF5mX7dp'
7+ if (if ((voterPublicKey != auditor1open))
8+ then (voterPublicKey != factory1open)
99 else false)
10+ then false
11+ else true
12+ }
13+
14+
15+func isAuditor (voterPublicKey) = {
16+ let auditor1open = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
17+ if ((voterPublicKey != auditor1open))
1018 then false
1119 else true
1220 }
1422
1523 @Callable(i)
1624 func vote (theVote) = if (!(voterIsAllowedToVote(i.callerPublicKey)))
17- then throw("Вы не можете голосовать, так как вас нет в списке голосующих!")
25+ then throw("У вас нет прав доступа")
1826 else {
1927 let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey))
28+ let getAuditor = getStringValue(this, "Auditor")
29+ let getFactory = getStringValue(this, "Factory")
2030 if (isDefined(dataFromStorage))
21- then throw("Вы уже голосовали! Повтороное голосование запрещено.")
31+ then throw("Ваша подпись уже поставлена")
2232 else WriteSet([DataEntry(toBase58String(i.callerPublicKey), theVote)])
2333 }
2434
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func voterIsAllowedToVote (voterPublicKey) = {
5- let alekseiPubKey = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e'
6- let annaPubKey = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x'
7- if (if ((voterPublicKey != alekseiPubKey))
8- then (voterPublicKey != annaPubKey)
5+ let auditor1open = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
6+ let factory1open = base58'BGr3aRnHxWYKViZ9AKkqE7CdczJtRGk2vCzbGF5mX7dp'
7+ if (if ((voterPublicKey != auditor1open))
8+ then (voterPublicKey != factory1open)
99 else false)
10+ then false
11+ else true
12+ }
13+
14+
15+func isAuditor (voterPublicKey) = {
16+ let auditor1open = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
17+ if ((voterPublicKey != auditor1open))
1018 then false
1119 else true
1220 }
1321
1422
1523 @Callable(i)
1624 func vote (theVote) = if (!(voterIsAllowedToVote(i.callerPublicKey)))
17- then throw("Вы не можете голосовать, так как вас нет в списке голосующих!")
25+ then throw("У вас нет прав доступа")
1826 else {
1927 let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey))
28+ let getAuditor = getStringValue(this, "Auditor")
29+ let getFactory = getStringValue(this, "Factory")
2030 if (isDefined(dataFromStorage))
21- then throw("Вы уже голосовали! Повтороное голосование запрещено.")
31+ then throw("Ваша подпись уже поставлена")
2232 else WriteSet([DataEntry(toBase58String(i.callerPublicKey), theVote)])
2333 }
2434
2535
2636
2737 @Callable(i)
2838 func record (theInteger) = {
2939 let auditor1open = base58'6B7r4pWd3dB79ojogTFvQ2tspsav6gsL4iWqzsRG2rhR'
3040 let factory1open = base58'BGr3aRnHxWYKViZ9AKkqE7CdczJtRGk2vCzbGF5mX7dp'
3141 let myOpen = base58'FUCE44aWkQuFEKpfWRe3zoW8pGN2caDm1vqoK55FTnLP'
3242 if ((i.callerPublicKey != myOpen))
3343 then throw("Вы не можете добавлять данные, вы не заказчик")
3444 else WriteSet([DataEntry("auditor", auditor1open), DataEntry("factory", factory1open)])
3545 }
3646
3747

github/deemru/w8io/026f985 
47.23 ms