Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

upgrade horizonclient to patched version to fix load offers issues (closes #369) #373

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
3 - use forked version of stellar/go at nikhilsaraf/go branch "horizo…
…nclient-v2.0.0/1_export_offerBase"
nikhilsaraf committed Feb 16, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit ae3f6fc16400abcbc11d769fedc619c75b702bb5
8 changes: 5 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
@@ -9,7 +9,9 @@ import:
- package: github.com/spf13/pflag
version: v1.0.0
- package: github.com/stellar/go
version: horizonclient-v2.0.0
repo: git@github.com:nikhilsaraf/go.git
vcs: git
version: horizonclient-v2.0.0/1_export_offerBase
subpackages:
- build
- clients/horizonclient
20 changes: 11 additions & 9 deletions plugins/batchedExchange.go
Original file line number Diff line number Diff line change
@@ -341,15 +341,17 @@ func (b BatchedExchange) OpenOrders2Offers(orders []model.OpenOrder, baseAsset h
lmt = &lastModTime
}
offers = append(offers, hProtocol.Offer{
ID: ID,
Seller: tradingAccount,
Selling: sellingAsset,
Buying: buyingAsset,
Amount: amount,
PriceR: price,
Price: priceString,
LastModifiedLedger: 0, // TODO fix?
LastModifiedTime: lmt,
ID: ID,
OfferBase: hProtocol.OfferBase{
Seller: tradingAccount,
Selling: sellingAsset,
Buying: buyingAsset,
Amount: amount,
PriceR: price,
Price: priceString,
LastModifiedLedger: 0, // TODO fix?
LastModifiedTime: lmt,
},
})
}
return offers, nil