Skip to content

Commit 0601411

Browse files
Merge pull request #194 from XRPLF/xrpl/fix/ripple-path-find-request
fix(xrpl): add `omitempty` tag to RipplePathFindRequest Domain
2 parents 432e6dc + 14fd4b3 commit 0601411

File tree

5 files changed

+59
-4
lines changed

5 files changed

+59
-4
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
#### xrpl
13+
14+
- Add missing `omitempty` tag to `RipplePathFindRequest.Domain`
15+
16+
## [v0.1.15]
17+
1018
### Added
1119

1220
#### xrpl
@@ -36,10 +44,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3644

3745
- `rpc` client timeout fetched from config.
3846

39-
### Refactored
47+
48+
## [v0.1.14]
49+
50+
### Fixed
4051

4152
#### xrpl
4253

54+
- Bumped `golang.org/x/crypto` version to `v0.45.0`
55+
- Fix `websocket` client retrial mechanism on transaction await.
4356
- `TxResponse` `Meta` field type changed to `TxMetadataBuilder`, enabling custom parsing for specific transactions metadata such as `Payment`, `NFTokenMint`, etc.
4457

4558
## [v0.1.13]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: v0.1.15
3+
---
4+
5+
### Added
6+
7+
#### xrpl
8+
9+
- `EncodeMPTokenMetadata`, `DecodeMPTokenMetadata` and `ValidateMPTokenMetadata` utils to encode, decode and validate MPTokenMetadata as per XLS-89 standard.
10+
- `AuthorizeChannel` to authorize a payment channel.
11+
- Added `Loan` and `LoanBroker` ledger entry types for the lending protocol.
12+
- Added loan transaction types:
13+
- `LoanSet` - Creates or updates a loan with terms including principal, interest rates, payment intervals, and fees.
14+
- `LoanDelete` - Deletes an existing loan.
15+
- `LoanManage` - Modifies loan state (default, impair, unimpair).
16+
- `LoanPay` - Submits a payment on a loan.
17+
- Added loan broker transaction types:
18+
- `LoanBrokerSet` - Creates or updates a loan broker with management fee rates, cover rates, and debt limits.
19+
- `LoanBrokerDelete` - Deletes a loan broker.
20+
- `LoanBrokerCoverDeposit` - Deposits first-loss capital into a loan broker.
21+
- `LoanBrokerCoverWithdraw` - Withdraws first-loss capital from a loan broker.
22+
- `LoanBrokerCoverClawback` - Claws back first-loss capital from a loan broker.
23+
- Added supporting types for loan transactions:
24+
- `XRPLNumber` - Represents XRPL numbers as strings.
25+
- `OwnerCount`, `CoverRate`, `InterestRate`, `PreviousPaymentDate` - Wrapper types for uint32 values.
26+
- `Data`, `GracePeriod`, `PaymentInterval`, `PaymentTotal`, `LoanBrokerID` - Additional wrapper types for loan-related fields.
27+
28+
### Fixed
29+
30+
#### xrpl
31+
32+
- `rpc` client timeout fetched from config.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: v0.1.14
3+
---
4+
5+
### Fixed
6+
7+
#### xrpl
8+
9+
- Bumped `golang.org/x/crypto` version to `v0.45.0`
10+
- Fix `websocket` client retrial mechanism on transaction await.
11+
- `TxResponse` `Meta` field type changed to `TxMetadataBuilder`, enabling custom parsing for specific transactions metadata such as `Payment`, `NFTokenMint`, etc.

xrpl/queries/path/ripple_path_find.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type RipplePathFindRequest struct {
2121
SourceCurrencies []pathtypes.RipplePathFindCurrency `json:"source_currencies,omitempty"`
2222
LedgerHash common.LedgerHash `json:"ledger_hash,omitempty"`
2323
LedgerIndex common.LedgerSpecifier `json:"ledger_index,omitempty"`
24-
Domain *string `json:"domain"`
24+
Domain *string `json:"domain,omitempty"`
2525
}
2626

2727
// Method returns the JSON-RPC method name for the RipplePathFindRequest.

xrpl/queries/path/ripple_path_find_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ func TestRipplePathFindRequest(t *testing.T) {
4343
{
4444
"currency": "USD"
4545
}
46-
],
47-
"domain": null
46+
]
4847
}`
4948
if err := testutil.Serialize(t, s, j); err != nil {
5049
t.Error(err)

0 commit comments

Comments
 (0)