Skip to content
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

all: Update libs & tests to support ScValue overhaul. #4819

Merged

Conversation

Shaptic
Copy link
Contributor

@Shaptic Shaptic commented Mar 22, 2023

What

Updates things to conform to the new way to build ScVals:

  • the support/contractevents library, which parses SAC events
  • the contract_data.go ingestion processor, which parses contracts
  • the operations_processor_test.go, invoke_host_function_test.go and sac_test.go test suites to properly build contract invocations

Why

Self-explanatory: stellar/stellar-cli#471.

Closes #4790.

Known limitations

n/a

Shaptic and others added 2 commits March 20, 2023 18:52
…ents. (stellar#4806)

* Harden amount parser
* Propogate network passphrase and add tests
* Integration tests check effect values, passing 🙏
* Move stringification to xdr package
* Separate to/from addresses in contract events
@Shaptic Shaptic requested review from paulbellamy, 2opremio and a team March 22, 2023 17:55
@Shaptic Shaptic force-pushed the nextnext/update-ingestion branch from f8c0a72 to 02c5d8a Compare March 22, 2023 17:59
@Shaptic Shaptic requested a review from tamirms March 22, 2023 18:00
@Shaptic Shaptic changed the title services/horizon: Update ingestors to support the ScVal overhaul services/horizon, contractevents: Update libs & tests to support ScValue overhaul. Mar 22, 2023
@Shaptic Shaptic force-pushed the nextnext/update-ingestion branch from 5880ca8 to ce35efb Compare March 22, 2023 23:33
@Shaptic Shaptic changed the title services/horizon, contractevents: Update libs & tests to support ScValue overhaul. all: Update libs & tests to support ScValue overhaul. Mar 22, 2023
@Shaptic Shaptic force-pushed the nextnext/update-ingestion branch from cb620b2 to 5278838 Compare March 22, 2023 23:44
@Shaptic Shaptic force-pushed the nextnext/update-ingestion branch from 81fafc5 to fe74c63 Compare March 22, 2023 23:55

// EffectAccountDebited effects occur when an account sends some currency
EffectAccountDebited EffectType = 3 // from create_account, payment, path_payment, create_account
//
// from create_account, payment, path_payment, create_account, and SAC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge_account as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dunno, this comment was left as-is. I read it as "the merged account doesn't get a debit effect it just disappears"?

@Shaptic Shaptic merged commit d3cd4aa into stellar:soroban-xdr-next-next Mar 23, 2023
@Shaptic Shaptic deleted the nextnext/update-ingestion branch March 23, 2023 17:50
2opremio added a commit that referenced this pull request Mar 27, 2023
* Gofmt

* update xdr to 7356dc237ee0db5626561c129fb3fa4beaabbac6

* Soroban xdr value overhaul ScVal.Equals fixes (#4815)

* Fix a bug in generated xdr for boolean unmarshalling

* Output more helpful message when scval test fails

* Fix equality for xdr ScVal overhaul

* use bytes.equal

* soroban-xdr-next-next: Fix txnbuild tests (#4817)

* soroban-xdr-next-next: Fix XDR bool encoding/decoding (#4818)

* all: Update libs & tests to support `ScVal`ue overhaul. (#4819)

* services/horizon: Add `account_credited`/`debited` effects for SAC events. (#4806)
* Include contract asset balance changes in payments  (#4807)
* all: Bump supported Go versions to 1.19 and 1.20. (#4810)
* Use version 0.7.0 and 8abd3353c728f09ee1c8a2544f67a853e915afc2 of rs-soroban-sdk dependency
* Embed XDR into a separate file for testing

---------

Co-authored-by: shawn <[email protected]>
Co-authored-by: tamirms <[email protected]>

* ingest: Extract diagnostic events in GetOperationEvents() (#4820)

---------

Co-authored-by: Alfonso Acosta <[email protected]>
Co-authored-by: George <[email protected]>
Co-authored-by: shawn <[email protected]>
Co-authored-by: tamirms <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants