-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add in effects that weren't being returned by Horizon #368
Add in effects that weren't being returned by Horizon #368
Conversation
This was also reported in #294 |
In the course of doing this, I also found that the offer effects: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to the one comment I made about keeping the API unchanged, please implement some tests for this PR.
It's looking good; Thanks!
Trustor string `json:"trustor"` | ||
AssetType string `json:"asset_type"` | ||
AssetCode string `json:"asset_code,omitempty"` | ||
base.Asset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't a refactoring; It changes the API, please revert it.
If you'll notice, these effects don't have asset_issuer
fields. By embedding the base.Asset
you will be including that field.
We just need to implement them... the constants were simply defined before we got around to adding the effects into ingestion. |
@martinxsliu would you mind adding support to offer related effects (so basically closing #166)? |
@martinxsliu do you mind rebasing the PR? I believe InflationDestination for the AccountInflationDestinationUpdated effect has been added. I also have a PR adding offer related effects. |
Closing due to age and ingestion system deprecation. |
I was looking at the way Horizon returns effects and I noticed that there were some effects and fields that weren't being serialized properly and hence not getting returned in the API. This PR adds in the missing effects.
Changes:
AuthImmutable
flag for theAccountFlagsUpdated
effect.InflationDestination
for theAccountInflationDestinationUpdated
effect.DataCreated
,DataRemoved
, andDataUpdated
effects.For reference I've been using
go/services/horizon/internal/ingest/session.go
Line 106 in 081dd9c