Commit graph

6242 commits

Author SHA1 Message Date
Manfred Karrer
b274a4a3cd
Add superclasses for ProposalListItem and ActiveProposalView 2018-04-30 18:34:04 -05:00
Manfred Karrer
57f612958b
Add voting tab 2018-04-30 18:21:37 -05:00
Manfred Karrer
040fec61d1
Rename "Cancel vote" to "Remove my vote" 2018-04-30 17:15:03 -05:00
Manfred Karrer
554c11fbd6
Fix missing txId at proposal creation
- Add check for empty txIf in proposalValidator
- Disable create proposal combobox if in last block of phase or outside phase
- Improve UI code
2018-04-30 13:43:47 -05:00
Manfred Karrer
390d7999c8
Use Proposal instead of Ballot. Cleanup 2018-04-30 12:47:45 -05:00
Manfred Karrer
7b6a8fd59a
Move propsal package one level up 2018-04-30 12:37:13 -05:00
Manfred Karrer
2705e68dc8
Let proposal domain handle all its relevant use cases
- Previously we wrapped by default a proposal into a ballot and used that in the UI.
We changed that so in the proposal phase there is only the proposal used. Once we enter the blind vote phase we move to ballot representation.
- We also changed that the proposals for the append-only data store gets filled by the proposal domain once entering the blind vote phase.
- We moved also the publishing, removal and republishing to the myProposalListService.
2018-04-30 12:28:22 -05:00
Manfred Karrer
7951fc557b
Merge branch 'storage-provider' into voting 2018-04-27 15:20:22 -05:00
Manfred Karrer
0a6f79b50f
Merge pull request #1521 from ripcurlx/improve-edit-offer
Improvements for edit offer
2018-04-27 09:44:31 -05:00
Christoph Atteneder
e32b7f3612
Change group title to display edit price only 2018-04-27 11:23:08 +02:00
Manfred Karrer
956924e6df
Merge branch 'master' into mk_master 2018-04-26 18:49:31 -05:00
Manfred Karrer
54cc34bb96
Merge branch 'master' into voting 2018-04-26 18:16:46 -05:00
Christoph Atteneder
1a066cb9ff
Force revalidation of changed fields 2018-04-26 11:10:16 +02:00
Christoph Atteneder
3adf086650
Not set focus to disabled field 2018-04-26 11:09:49 +02:00
Christoph Atteneder
a8baead3f9
Start edit only when intialized with data 2018-04-26 11:09:09 +02:00
Christoph Atteneder
5276671f1e
Prevent updating of amount 2018-04-26 10:22:15 +02:00
Christoph Atteneder
8b9ccfe588
Disable also currency labels and volume fields 2018-04-26 10:21:35 +02:00
Manfred Karrer
b996e948a2
Store only proposal TxId + vote instead of whole ballot in BlindVote
- Add BallotFactory
- Change encryptedBallotList to encryptedVotes
2018-04-25 12:42:26 -05:00
Manfred Karrer
85328e4db8
Move period package into state package 2018-04-24 21:08:29 -05:00
Manfred Karrer
99e9943eb2
Move proposal and vote package into ballot package 2018-04-24 21:04:06 -05:00
Manfred Karrer
a66b62ef28
Move ValidationException to voting package 2018-04-24 21:01:04 -05:00
Manfred Karrer
8381ce6f9e
Rename VOTE_RESULT to RESULT 2018-04-24 18:18:26 -05:00
Manfred Karrer
62da432790
Refactor ParamChange domain 2018-04-24 16:35:18 -05:00
Manfred Karrer
55ee4a15b8
Remove Meta data from block.
- Remove Block
- Rename TxBlock to Block
- Rename classes, methods with *TxBlock* to *Block*
- Remove stateChangeEventsProviders
2018-04-24 11:00:26 -05:00
Manfred Karrer
73357871bd
Merge pull request #1519 from ripcurlx/fix-bouncy-castle-error
Change startup order to prevent Bouncy Castle exception
2018-04-24 10:38:38 -05:00
Manfred Karrer
3b6138c6f6
Merge pull request #1520 from ripcurlx/limit-edit-offer-options
Prevent editing of amount
2018-04-24 10:38:03 -05:00
Christoph Atteneder
ffb2c6b60c
Prevent editing of min amount and max amount for now, as it would need a change in locked up funds for higher amounts. 2018-04-24 17:30:26 +02:00
Christoph Atteneder
a5e1be3725
Change startup order to prevent Bouncy Castle exception 2018-04-24 17:19:05 +02:00
Manfred Karrer
81c57cf2d5
Remove chainHeightListeners from PeriodService
- Rename addPeriodStateChangeListener to addChainHeightListener
2018-04-24 09:28:19 -05:00
Manfred Karrer
bf8629d23e
Refactor handling of cycles
- Remove PeriodState
- Add cycles to state
- Use stateService for getting chainHeight instead of periodService
- Let parser call stateService methods on start parsing and on new block
- Rename PeriodStateChangeListener to ChainHeightListener
- Rename PeriodStateUpdater to CycleService
- Use StartParsingListener to decouple CycleService with StateService
- Remove StateChangeEventsProvider interface from CycleService
- Let CycleService write to StateService not PeriodService
2018-04-23 22:59:34 -05:00
Manfred Karrer
15ff5fadab
Move voting related classes to voting package 2018-04-23 19:20:00 -05:00
Manfred Karrer
6ed700589d
Move ValidationException to bisq.core.dao.exceptions 2018-04-23 00:16:34 -05:00
Manfred Karrer
3d99e92267
Add DaoFacade to provide a reduced API for clients (UI) 2018-04-22 21:22:37 -05:00
Manfred Karrer
dc2db746b7
Move classes out of consensus package 2018-04-22 19:32:16 -05:00
Manfred Karrer
aa6a9226a2
Improve proposal and ballot domain
- Add ProposalService for publishing proposal
- Use ballotListService for maintaining ballotList
- Add BallotUtil
2018-04-22 19:16:00 -05:00
Manfred Karrer
8a3e8c7a96
Cleanup 2018-04-22 00:09:47 -05:00
Manfred Karrer
930573a6dd
Merge branch 'rpc_thread' into voting 2018-04-21 22:21:04 -05:00
Manfred Karrer
53b5b7b831
Remove presentation package and classes 2018-04-21 21:41:28 -05:00
Manfred Karrer
faa15f3da6
Move ballot classed from bisq.core.dao.presentation to consensus 2018-04-21 21:04:17 -05:00
Manfred Karrer
6551ad28df
Remove StateServiceFacade 2018-04-21 21:03:47 -05:00
Manfred Karrer
7e207d380d
Remove usage of PeriodServiceFacade and ThreadAwareListener 2018-04-21 20:52:33 -05:00
Manfred Karrer
c9a4d54615
Rename package bisq.core.dao.presentation.proposal to ballot 2018-04-21 14:40:42 -05:00
Manfred Karrer
30b4e56b61
Separate blindVoteService 2018-04-20 22:33:37 -05:00
Manfred Karrer
4fd29557f5
Apply separation of thread access to myVote domain 2018-04-20 22:04:23 -05:00
Manfred Karrer
46a440d84b
Change ballot list services to user thread services 2018-04-20 20:29:31 -05:00
Manfred Karrer
ca1ab3d3f0
Remove proposalService from views 2018-04-20 14:17:00 -05:00
Manfred Karrer
0389fb03e0
Move ballot classed to own package 2018-04-20 14:10:51 -05:00
Manfred Karrer
9becb6d25f
Move packages level up 2018-04-20 14:07:49 -05:00
Manfred Karrer
75f84a0fa5
Refactoring
- Add PeriodStateMutator to guice module
- Add ConsensusServicesSetup and PresentationServicesSetup
- Separate code from onAllServicesInitialized into listener registration and start method
- Move MyProposalService and ProposalListService to bisq.core.dao.presentation.proposal (WIP)
- Add PresentationService marker interface
- Rename PHASE_ISSUANCE to PHASE_VOTE_RESULT
- Remove onInitialState from PeriodStateChangeListener
- Add getCloneOnUserThread method to PeriodState
- Change addListenerAndGetNotified to addPeriodStateChangeListener
- Call start on PeriodStateMutator from ConsensusServicesSetup instead of own constructor
- Use explicit interface StateChangeEventsProvider for registerStateChangeEventsProvider
- Set setChainHeight at onStartParsingNewBlock at the end to avoid that listeners get called before the cycle is added
- Use PeriodServiceFacade instead of PeriodService in ProposalListService
- Use StateServiceFacade instead of StateService in ProposalListService
- Add market interface StateChangeEventsProvider
2018-04-20 14:02:45 -05:00
Manfred Karrer
8fcab9b1e7
Rename ISSUANCE to VOTE_RESULT and openBallotList to ballotList 2018-04-20 11:34:21 -05:00