forked from stellar/go
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into release-horizon-v0.25.0
- Loading branch information
Showing
22 changed files
with
1,119 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// +build go1.13 | ||
|
||
package hubble | ||
|
||
type accountState struct { | ||
address string | ||
seqnum uint32 | ||
balance uint32 | ||
signers []signer | ||
trustlines map[string]trustline | ||
offers map[uint32]offer | ||
data map[string][]byte | ||
// TODO: May want to track other fields in AccountEntry. | ||
} | ||
|
||
type signer struct { | ||
address string | ||
weight uint32 | ||
} | ||
|
||
type trustline struct { | ||
asset string | ||
balance uint32 | ||
limit uint32 | ||
authorized bool | ||
// TODO: Add liabilities. | ||
} | ||
|
||
// TODO: Save amount as a decimal instead of integer. | ||
// TODO: Save decimal in addition to N and D. | ||
type offer struct { | ||
id uint32 | ||
seller string // seller address | ||
selling string // selling asset | ||
buying string // buying asset | ||
amount uint32 | ||
priceNum uint16 | ||
priceDenom uint16 | ||
// TODO: Add flags. | ||
} |
Oops, something went wrong.