tx · 9J18TPbv3kKpLB24i2L9cnwzkd8GUvxLCuvVQHNc5aFH

3NB1cgveY8ad3Q3YPBb8W5P1wxXf4PBdv8E:  -0.01400000 Waves

2019.09.13 12:26 [674224] smart account 3NB1cgveY8ad3Q3YPBb8W5P1wxXf4PBdv8E > SELF 0.00000000 Waves

{ "type": 13, "id": "9J18TPbv3kKpLB24i2L9cnwzkd8GUvxLCuvVQHNc5aFH", "fee": 1400000, "feeAssetId": null, "timestamp": 1568366742115, "version": 1, "sender": "3NB1cgveY8ad3Q3YPBb8W5P1wxXf4PBdv8E", "senderPublicKey": "G1dpAxHK3DuPvcCbAz7eTxXXmRmqqZL1JyDUbeBQTfpA", "proofs": [ "2vWbs4NmFvhX51djAT6fD4Jdeb1ka9FLJRH3Cvpfbz6AYGJuR4abu1MNswsKR45cKbPnpmPgnm33dA5epZyymyk8" ], "script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQEAAAAIAAAAAAdtaW5Wb3RlAAAAAAAAAAABAAAAAAdtYXhWb3RlAAAAAAAAAAAKAAAAABJzdG9wQmxvY2tUaW1lc3RhbXAAAAABbEqUuEoAAAAADnZvdGVyS2V5UHJlZml4AgAAAAZ2b3Rlcl8AAAAAD3N1Ym1pdEtleVByZWZpeAIAAAAHc3VibWl0XwEAAAALZ2V0Vm90ZXJLZXkAAAABAAAADHZvdGVyQWRkcmVzcwkAASwAAAACBQAAAA52b3RlcktleVByZWZpeAkAAlgAAAABBQAAAAx2b3RlckFkZHJlc3MBAAAADGdldFN1Ym1pdEtleQAAAAEAAAANY2FsbGVyQWRkcmVzcwkAASwAAAACBQAAAA9zdWJtaXRLZXlQcmVmaXgJAAJYAAAAAQUAAAANY2FsbGVyQWRkcmVzcwEAAAAUdm90ZXJJc0FsbG93ZWRUb1ZvdGUAAAABAAAADHZvdGVyQWRkcmVzcwQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzCQEAAAALZ2V0Vm90ZXJLZXkAAAABBQAAAAx2b3RlckF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IG9mIHJhbmdlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAMZ2V0U3VibWl0S2V5AAAAAQgIBQAAAANjdHgAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAd0aGVWb3RlBQAAAANuaWwAAAABAAAAAXQBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAXQDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAFzAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABcwAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAFzAAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAAWkFAAAAByRtYXRjaDAGCQAAAgAAAAECAAAAJlRoaXMgdHlwZSBvZiB0cmFuc2FjdGlvbiBpcyBwcm9oaWJpdGVkFvEsMw==", "chainId": 84, "height": 674224, "spentComplexity": 0 } View: original | compacted Prev: 3P934np4V5zt8A7xYhGRfvkgtsUpu54kNmA8R4gcimLQ Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1
55
66 let b = 10
77
88 let c = 1564619356234
99
1010 let d = "voter_"
1111
1212 let e = "submit_"
1313
1414 func f (g) = (d + toBase58String(g))
1515
1616
1717 func h (i) = (e + toBase58String(i))
1818
1919
2020 func j (g) = {
2121 let k = getBoolean(this, f(g))
2222 if ($isInstanceOf(k, "Boolean"))
2323 then {
2424 let l = k
2525 l
2626 }
2727 else false
2828 }
2929
3030
3131 @Callable(m)
3232 func addVoter () = WriteSet([DataEntry(f(m.caller.bytes), true)])
3333
3434
3535
3636 @Callable(m)
3737 func vote (n) = if ((lastBlock.timestamp >= c))
3838 then throw("Voting is over, since the stop block timestamp is reached")
3939 else if ((j(m.caller.bytes) == false))
4040 then throw("You are not allowed to vote, since your address is not present in our list of voters.")
4141 else {
4242 let o = getInteger(this, toBase58String(m.callerPublicKey))
4343 if (isDefined(o))
4444 then throw("You have already voted! Duplicate votes are prohibited.")
4545 else if (if ((a > n))
4646 then true
4747 else (n > b))
4848 then throw("Vote is out of range")
4949 else WriteSet([DataEntry(h(m.caller.bytes), n)])
5050 }
5151
5252
5353 @Verifier(p)
5454 func q () = {
5555 let k = p
5656 if (if ($isInstanceOf(k, "SetScriptTransaction"))
5757 then true
5858 else $isInstanceOf(k, "DataTransaction"))
5959 then {
6060 let r = k
6161 sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
6262 }
6363 else if ($isInstanceOf(k, "InvokeScriptTransaction"))
6464 then {
6565 let s = k
6666 true
6767 }
6868 else throw("This type of transaction is prohibited")
6969 }
7070

github/deemru/w8io/169f3d6 
61.03 ms