Commit graph

5718 commits

Author SHA1 Message Date
Manfred Karrer
5068a4e12a
Merge pull request #1483 from ManfredKarrer/voting
Refactor verification controllers. Remove fee from vote reveal tx
2018-03-29 11:32:11 -05:00
Christoph Atteneder
5796c1797b
Merge pull request #1485 from ripcurlx/ignore-test-to-fix-linux-build-issue
Ignore test for now as it causes issues during linux build
2018-03-29 14:07:54 +02:00
Christoph Atteneder
f452336cdb
Ignore test for now as it causes issues during linux build 2018-03-29 13:54:32 +02:00
Manfred Karrer
f7a4137559
Merge remote-tracking branch 'origin/master' into voting 2018-03-29 00:27:43 -05:00
Manfred Karrer
b7db52759d
Refactorings, cleanup
- Rename getIssuedAmount to getIssuedAmountAtGenesis
- Fix variable name missed in earlier refactoring
- Add comments
2018-03-28 21:50:04 -05:00
Manfred Karrer
fb6a5301b8
Refactor: Rename TxType.VOTE to TxType.BLIND_VOTE 2018-03-28 21:19:54 -05:00
Manfred Karrer
06a40c0b27
Refactor BSQ verification and state change code.
- Add preliminary opReturn type to make case detection easier
- Set txType at the BsqTxController after iteration
- Move apply state code to BsqTxController
- Add more warning logs and checks
- Add stakeSpendingOutput to verify reveal tx more strictly
2018-03-28 20:02:12 -05:00
Manfred Karrer
57d657b6bf
Merge pull request #1482 from ripcurlx/add-info-tooltips-for-offer-table
Add info icons to prices in offer table
2018-03-28 08:35:03 -05:00
Christoph Atteneder
dbc9f5cfa6
Add info tooltips in offer table 2018-03-28 15:21:37 +02:00
Christoph Atteneder
e4aca5e979
Add missing copyright notice. 2018-03-28 15:21:11 +02:00
Christoph Atteneder
49765f6c77
Merge pull request #1481 from ripcurlx/fix-wrong-row-span
Fix wrong row span so group is closed after offer table
2018-03-28 09:47:30 +02:00
Christoph Atteneder
deee136d4e
Merge pull request #1480 from ripcurlx/fix-style-issue-with-deactivated-offers
Fix wrong style scope
2018-03-28 09:47:14 +02:00
Christoph Atteneder
3eaeeb2ce4
Fix wrong row span so group is closed after offer table 2018-03-28 09:42:36 +02:00
Christoph Atteneder
55665cbabb
Fix wrong style scope 2018-03-28 09:28:54 +02:00
Manfred Karrer
c777600dfa
Merge pull request #1478 from ManfredKarrer/voting
Voting
2018-03-27 19:46:15 -05:00
Manfred Karrer
02d616aec3
Merge pull request #1479 from ripcurlx/add-info-for-market-based-price-input
Adds information/warning icon for market based price input field
2018-03-27 13:02:59 -05:00
Manfred Karrer
7f1c0f8afb
Remove dev log 2018-03-27 12:29:23 -05:00
Christoph Atteneder
24522f0290
Remove new Fontawesome icon library as it creates side-effects depending which version of the font is loaded first. Have to be replaced everywhere at once. 2018-03-27 18:14:25 +02:00
Manfred Karrer
969f32f05a
Implement issuance 2018-03-27 10:53:28 -05:00
Christoph Atteneder
65a5580697
Add info icon to market based price input field 2018-03-27 17:29:31 +02:00
Christoph Atteneder
50239b69bc
Add Fontawesome Icon support 2018-03-27 17:28:46 +02:00
Manfred Karrer
ee7c79fe6a
Merge pull request #1477 from ripcurlx/improve-create-offer-step-one
Create offer screen improvements part 1
2018-03-26 12:50:43 -05:00
Christoph Atteneder
779f42beee
Use absolut value again, as there was a reason for using it that way 2018-03-26 17:32:30 +02:00
Christoph Atteneder
d527eeb0ec
Replace toggle button with toggle icon and enable/disable active offer type 2018-03-26 16:47:02 +02:00
Christoph Atteneder
23d0ca990b
Add new material design icons for offer type (Fixed | Percentage) 2018-03-26 14:10:52 +02:00
Christoph Atteneder
4a60865b6b
Use relative font size 2018-03-26 14:09:21 +02:00
Christoph Atteneder
626cf5fb1b
Remove unused library 2018-03-26 14:08:38 +02:00
Christoph Atteneder
1ad4a679be
Add new version of icon library to enable step-by-step migration 2018-03-26 12:02:31 +02:00
Manfred Karrer
bf028f21bd
Merge pull request #1474 from ManfredKarrer/voting
Support for blind voting
2018-03-25 00:16:32 -05:00
Manfred Karrer
b768eee4c6
Add missing DaoPeriodService.Phase entries in switch cases 2018-03-24 11:32:42 -05:00
Manfred Karrer
7ac8e35083
Merge branch 'master' into voting 2018-03-23 22:09:34 -05:00
Manfred Karrer
2a9915b6ca
Implement issuance and vote result calculation (WIP) 2018-03-23 20:32:09 -05:00
Chris Beams
04bace7a28
Disable IDEA wrap on typing
See bisq-network/style#3
2018-03-23 23:29:57 +01:00
Manfred Karrer
1267341639
Implement vote reveal tx and data structure 2018-03-22 20:47:01 -05:00
Manfred Karrer
b4ee6c19a7
Merge pull request #1475 from ripcurlx/fix-total-amount-duplication-in-spread-view
Add missing parenthesis
2018-03-22 19:08:46 -05:00
Christoph Atteneder
058d782ef6
Add missing parenthesis 2018-03-22 15:54:10 +01:00
Chris Beams
92ec88f1fc
Enable Travis CI Gradle dependency caching
Per https://docs.travis-ci.com/user/languages/java/#Caching
2018-03-22 11:27:51 +01:00
Chris Beams
96207654d0
Increase Gradle HTTP timeouts from 30 => 120 seconds
Problem: Gradle's default 30 second HTTP timeouts often cause bisq-*
component builds to fail when resolving dependencies built on the fly
via JitPack, e.g.:
https://travis-ci.org/bisq-network/bisq-core/builds/356777615#L518-L525.

Solution: Increase timeout values to 120 seconds, which should be more
that sufficient.

See:
 - gradle/gradle#3370
 - gradle/gradle#3371
 - gradle/gradle#4629
2018-03-22 10:39:52 +01:00
Manfred Karrer
075c3f1602
Remove vote stake output from spendable outputs. Show stake in table. 2018-03-21 21:43:36 -05:00
Manfred Karrer
a34bf50650
Add UI for myVotes 2018-03-21 20:53:44 -05:00
Chris Beams
9d4e015108
Use app scripts instead of fat excutable jars
It doesn't actually work to build fat executable jars because we always
have bouncycastle jars that need to exist outside of the fat jar. This
change drops building fat jars altogether in favor of using Gradle's
built-in `application` plugin to write simple scripts that invoke java
with the correct classpath against a directory of all dependencies
(including bouncycastle) without the need to have a fat jar in the mix.

Essentially, you should now run:

    ./gradlew build
    ./build/app/bin/bisq-desktop [options]

Instead of `java -jar build/libs/bisq-desktop.jar`.

See updated doc/build.md for details.
2018-03-22 02:41:25 +01:00
Chris Beams
50dbe1d646
Remove unnecessary bouncycastle dependency declarations 2018-03-22 02:41:03 +01:00
Chris Beams
2731e044fb
Use 'master' tor-binary Maven repository
For reasons detailed in bisq-network/bisq-p2p@b1528bf3.

This change also regenerates the `dependencyVerification` block, which
is necessary in any case after the upgrade of tor binaries, but note
especially that for unknown reasons, commenting out certain dependencies
items is now no longer necessary as it was in commit
53a9009b06.
2018-03-22 00:34:30 +01:00
Manfred Karrer
83b3deda92
Merge pull request #1473 from cbeams/gradle
Migrate build from Maven to Gradle
2018-03-21 09:51:16 -05:00
Chris Beams
53a9009b06
Comment out problematic dependency verifications
Problem: The dependency commented out in this commit, when left
uncommented cause any Gradle composite build that includes this
(`bisq-desktop`) build to fail with, for example, the following error:

    No dependency for integrity assertion found:
    com.github.bisq-network.libdohj:libdohj-core

Solution: Comment them out until someone can dig into the gradle-witness
plugin, figure out why these specific entries cause these failures, and
fix it. Note that the commented entries work as expected when this
Gradle build is used outside the context of a composite build.
2018-03-21 12:37:55 +01:00
Chris Beams
fa492836bb
Remove Maven build 2018-03-21 06:16:32 +01:00
Chris Beams
c19d3a0742
Replace Maven with Gradle in docs and scripts
This commit takes a pass through all documentation and scripts,
replacing any remaining `mvn` commands with their `gradle` equivalents,
replacing `target/*` paths with their `build/*` equivalents, and so on.

Note that the instruction to install Maven has been removed entirely
from documentation and scripts, as opposed to instructing users to
install Gradle, because with the Gradle wrapper (the `gradlew` script in
the root of this repository), it is unnecessary to install Gradle at
all. Users may still do this with, e.g. `brew install gradle` if they
like, but otherwise can get everything they need done with `./gradlew`
commands.

This commit also replaces lowercase 'bisq' with capitalized 'Bisq' where
appropriate in documentation.

Like the previous commit, this is a best-effort approach, and not all
scripts are perfectly up-to-date and tested. Indeed, many of the docs
and scripts we have now are essentially legacy documents and should
probably be scrapped or reworked completely.
2018-03-21 06:15:01 +01:00
Chris Beams
86a5a711c0
Update macOS packaging script
This commit is *not* a complete re-working of the scripts under package,
but is rather just enough of a re-working of the
package/osx/create_app.sh script to verify that the new Gradle build
creates a suitable fat executable jar for use in this script.

These changes have been tested with the following commands:

    cd package/osx
    ./create_app.sh
    open ../../deploy/Bisq-0.6.7.dmg

Then double-clicking the Bisq icon from the mounted DMG. Bisq starts up
as expected, without errors.

Further work will be required to update the package/osx/finalize.sh
script as well as the package/linux/ and package/windows/ scripts prior
to the next (0.7.0) release. For now, however, enough work has been done
to verify that the Gradle build creates the fat jar these scripts need.
2018-03-21 06:15:00 +01:00
Chris Beams
27cc933c4e
Verify dependency checksums with gradle-witness plugin
This performs the same function that the maven-enforcer-plugin did in
the pom removed by the previous commit, and also includes a more
comprehensive / up-to-date set of dependencies.

Note that the gradle-witness jar checked in here is one built from the
pull request in signalapp/gradle-witness#26.
2018-03-21 06:15:00 +01:00
Chris Beams
6e87bee784
Add Gradle build 2018-03-21 06:14:48 +01:00