Commit Graph

292 Commits

Author SHA1 Message Date
Alejandro García
9869410587
Merge branch 'master' into declare_protobuf_java_version_in_platorm_for_all_dependencies 2023-07-06 19:39:40 +00:00
Alejandro García
1aaa7d2dd5
Merge pull request #6757 from alvasw/proto_remove_redundant_source_set_definitions
proto: Remove redundant 'sourceSets.main.java.srcDirs += '
2023-07-06 19:38:07 +00:00
Alejandro García
f56c1b34c4
Merge pull request #6756 from alvasw/proto_add_idea_plugin
proto: Add idea plugin
2023-07-06 19:37:43 +00:00
Alejandro García
f295f164c5
Merge pull request #6755 from alvasw/apply_proto_tasks_only_to_main_source_set
proto: Apply proto tasks only to main source set
2023-07-06 19:37:08 +00:00
Alejandro García
9693826595
Merge pull request #6754 from alvasw/declace_grpc_version_in_proto_version
Declare grpc compiler version in proto module
2023-07-06 19:36:28 +00:00
Alva Swanson
f6dff320d5
proto: Remove redundant 'sourceSets.main.java.srcDirs += ' 2023-07-06 18:27:36 +02:00
Alva Swanson
56e1969444
proto: Add idea plugin
The protobuf-gradle-plugin automatically registers proto files and
generated Java code as sources to the idea plugin.
2023-07-06 18:26:31 +02:00
Alva Swanson
2bbed1f60f
proto: Apply proto tasks only to main source set 2023-07-06 18:24:51 +02:00
Alva Swanson
e5e1ec092d
Declare grpc compiler version in proto module 2023-07-06 18:23:12 +02:00
Alva Swanson
d9056fa2be
Declare protoc version in proto module 2023-07-06 18:21:35 +02:00
Alva Swanson
78a742695c
Declare global protobuf-java in Java Platform Plugin
The constraints in the platform module apply to all libraries (including
to transitively included libraries).
2023-07-06 18:18:59 +02:00
HenrikJannsen
1ebc92e5b8
Add reset buttons for BM accounting 2023-07-01 14:25:43 +02:00
helixx87
aca897fa03
API: gettransactions method 2023-06-08 10:19:41 +02:00
Alejandro García
e8a3d92d34
Merge pull request #6646 from helixx87/api-get-all
Support "all" attribute in getoffers API method
2023-04-15 02:31:02 +00:00
helixx87
458f50dec9
Support "all" attribute in getoffers API method 2023-04-11 12:50:00 +02:00
HenrikJannsen
fb5b56d03c
Add processBurningManAccountingData field to preferences
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2023-04-10 14:38:37 +07:00
jmacxx
c404eb1e91
Support UI improvements (per bisq project 67). 2023-03-11 22:06:07 -06:00
Alva Swanson
c1c4caf87f
Gradle: Apply bisq.java-conventions to all projects 2023-02-05 22:02:13 +01:00
Christoph Atteneder
40d949cbc9
Merge pull request #6463 from HenrikJannsen/adjust_burn_target
Adjust burn target
2022-12-19 09:29:55 +01:00
HenrikJannsen
21541d6880
Add INVALID_SNAPSHOT_HEIGHT to AvailabilityResult.
Use AvailabilityResult.INVALID_SNAPSHOT_HEIGHT instead of AckMessage with error.
Show description in error popup instead of enum name.
Return PRICE_CHECK_FAILED instead of UNKNOWN_FAILURE at error at price check also for non api users.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-18 13:13:36 -05:00
Alva Swanson
5d30d44b15
Gradle: Move protoc build-logic into its own build.gradle 2022-12-14 17:38:35 +02:00
Christoph Atteneder
71d6e126dd
Merge pull request #6423 from HenrikJannsen/add-burningman-accounting
Add burningman accounting
2022-12-14 10:17:38 +01:00
HenrikJannsen
f28e3960da
Rename *ValueItem to *ValueReportingItem
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 17:26:50 -05:00
HenrikJannsen
90550dee3f
Add messages and domain data for accounting domain
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 11:15:17 -05:00
HenrikJannsen
e16a9b00b1
Add verifyDelayedPayoutTxReceivers method in RefundManager.
Add burningManSelectionHeight and tradeTxFee in Dispute.
Call validateDonationAddressMatchesAnyPastParamValues and validateDonationAddress
only if legacy BM was used.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 11:15:08 -05:00
HenrikJannsen
e2ce053a01
Add burningManSelectionHeight fields to OfferAvailabilityRequest, InputsForDepositTxRequest and ProcessModel.
Use BurningManService.getBtcFeeReceiverAddress at createFeeTx tasks.
Verify takers burningManSelectionHeight if BurningManService.isActivated at MakerProcessesInputsForDepositTxRequest and OpenOfferManager.
Stores burningManSelectionHeight in ProcessModel.
Add BurningManService fields to OfferAvailabilityModel, PlaceOfferModel, OpenOfferManager and Provider

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 11:15:07 -05:00
HenrikJannsen
f98cd04fd8
Use LongValueItem instead of IntegerValueItem
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-09 08:54:28 -05:00
HenrikJannsen
2c84f07ada
Add value objects and protobuf definitions
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-07 11:51:08 -05:00
jmacxx
c796531658
Increase trading limits as an opt-in setting (GH proposal 398)
More restrictive limits will still apply based on payment method.

It is intended to avoid that a new users who do not fully understand
the process of a Bisq trade to cause an arbitration case with high
amounts and therefore higher risks and costs for the DAO.
2022-11-29 09:32:38 -06:00
Android-X13
d77b76034d
Include option for non-URI addresses in QR codes 2022-11-22 23:11:45 +02:00
chimp1984
c40d4ffffa
Add wasTruncated flag
Indicates if data response contained all data or was truncated
2022-09-20 18:33:23 -05:00
ghubstan
35f4fe14b2
Improve takeoffer param api ref comments 2022-09-11 12:21:26 -03:00
ghubstan
39c42ddb07
Add amount field to TakeOfferRequest proto msg 2022-08-06 15:04:07 -03:00
ghubstan
60c7feeb5d
Update .proto rpc get/take offer method comments
Explain that the API's getoffer(s) and takeoffer methods only
work as expected when the user's node has payment account/methods
matching the available offers' own payment methods.

- getoffers returns only the offers with payment methods matching
  those set up on the user's node

- getoffer will only return the offer if the user's node has a
  payment method matching the payment method associated with the
  requested offer

- takeoffer will fail if the user's node does not have a matching
  payment method
2022-06-29 11:53:20 -03:00
ghubstan
ed3e17cec5
Fix snake_case field name
Be consistent, and x-language.
2022-06-23 15:06:13 -03:00
Christoph Atteneder
444f2183e5
Merge pull request #6236 from jmacxx/xmr_subaddresses
Feat: XMR subaddresses per account
2022-06-20 20:40:20 +02:00
ghubstan
a12dd52b81
Add API method 'getavgbsqprice'
Returns volume weighted average BSQ price in BTC and USD over N days.

The need for this arose while creating a Java BSQ Swap bot example
(PR pending).  API bots can use this to determine whether or not to
take swap offers based on their price distance above or below the 30
(or 90) day trade price average.
2022-06-17 18:26:10 -03:00
ghubstan
ae41e98db9
Add API API method 'getnetwork'
Returns name of the BTC network API daemon is connected to.

I am working on some Java bot examples in another repo, and want to stop
worrying about accidentally simulating trade payments on mainnet, despite
all the warnings I add in comments.  The 'getnetwork' method allows bots
to know what network the API daemon is connected to, and gives API bot
devs and users a way to avoid one potential source of costly mistakes.

API CLI manpage and apitest case are included in this commit.
2022-06-16 15:31:03 -03:00
jmacxx
920e05562c
Feat: XMR subaddresses per account
incremente subaddress index at the start of the trade

Add subaccounts

Rename XmrAccountHelper to XmrAccountDelegate
Add map as final non null value

Persist subaccounts in User

Add display of used subaddresses and tradeId in account summary.
Main address and account index are the unique key for sub accounts.
Use the initial subaddress chosen by the user.

chimp1984 code review patch.

News badge/info for Account, disable old ones.

Show XMR subaddress popup info at Account (news badge), not startup.
2022-06-14 09:53:44 -05:00
Christoph Atteneder
98f355d3fa
Adapt navigational structure and offerbook handling to buy and sell different assets
Still missing correct create and take offer handling
2022-04-07 20:48:48 +02:00
ghubstan
a3990783a4
Send pretty payment details to api clients
Non-CLI clients need a better way of accessing payment details
than a contract json string.

- Add grpc.proto PaymentAccountPayloadInfo field: payment_details.
- Adjust proto wrapper PaymentAccountPayloadInfo to new field.
- Add test asserts to verify payment details are sent to client.
- Fix a test name: testKeepFunds -> testCloseTrade.

Based on branch `master` @ Sat 12 Mar 2022 01:42 PM -03 ,
         commit c6293b5273
2022-03-12 14:33:23 -03:00
ghubstan
b9b66b4826
Change grpc.proto TradeInfo field names
- is_fiat_sent		->	is_payment_started_message_sent
	Payment can be in altcoin.
- is_fiat_received	->	is_payment_received_message_sent
	Payment can be in altcoin.
- is_withdrawn		->	is_completed
	Trade can be closed with funds kept in Bisq wallet.
2022-02-27 18:09:36 -03:00
ghubstan
68ebdb2b08
Change grpc.proto field names to snake_case
Java client code can still use the camelCase field naming convention,
and other language bindings will not be forced to do the same.

Snake_case field names are also recommended in the Protocol Buffers
Sytle Guide:  https://developers.google.com/protocol-buffers/docs/style
2022-02-27 09:42:17 -03:00
ghubstan
2e9e51eb41
Remove GetTradeStatistics service from grpc.proto
This protobuf definition and service stub has been in place since
the start of work on the API, but was never fully implmented, nor
intended to be included in the API beta & v1 releases.

Its presence added a useless section to the gRPC API Reference doc.

	https://ghubstan.github.io/slate

Based on branch `7-more-grpcproto-comments`,
PR https://github.com/bisq-network/bisq/pull/6068.
2022-02-26 11:11:26 -03:00
ghubstan
c0631eb31f
Fix file/merge conflict 2022-02-25 20:51:55 -03:00
Stan
1499465c11
Merge branch 'master' into 7-more-grpcproto-comments 2022-02-25 20:46:05 -03:00
ghubstan
464c5a81c9
Be consistent in use of apostrophe 2022-02-21 08:13:13 -03:00
ghubstan
6e56660394
Fix comment error 2022-02-21 08:09:42 -03:00
ghubstan
9f013bd6c2
Fix errors in comments 2022-02-21 08:00:31 -03:00
ghubstan
fcd9c7e4d3
Finish 1st full pass of documenting grpc.proto for API reference site 2022-02-21 07:48:02 -03:00