-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat: project missing handle props #905
feat: project missing handle props #905
Conversation
that can be used to look up the label and decoded value by asset id
to not clash with Handle type from core package
fix a bug where it would incorrectly map cip68 handle names by including label as part of the Handle also, add optional 'logger' parameter to 'withHandles' operator (to be converted to required) BREAKING CHANGE: withHandles now requires WithCIP67 props in
also clean up the test by removing duplicate data
6ffde67
to
d1cf475
Compare
packages/cardano-services/src/StakePool/TypeormStakePoolProvider/mappers.ts
Show resolved
Hide resolved
packages/cardano-services/test/ChainHistory/ChainHistoryHttpService.test.ts
Show resolved
Hide resolved
there can be multiple 'copies' of nft metadata for an asset in a block it was keeping the 1st one instead
hoist from NftMetadata.fromPlutusData and add tests
b8c3f02
to
f097bb4
Compare
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.
Great work here @mkazlauskas 🧙♂️
It's possible this will address the discrepancy @VanessaPC found when comparing results of our projection vs the Kora Labs API right?
packages/projection/src/operators/Mappers/withHandleMetadata.ts
Outdated
Show resolved
Hide resolved
it maps 'og' from base nft metadata and images from 'extra'
…mentations - hoist assetNameToUTF8Handle to util.ts - use AssetName.toUTF8 core util also, replace custom error with the existing InvalidStringError, because it wasn't used anywhere
hoist shared utils to util.ts
…rPaymentCredential columns
446ce7b
to
37e7fec
Compare
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.
LGTM!
Just some ideas about readability...
also add missing entity inter-dependency output->tokens
it would omit the prop if no stake pools of some status are in the database
in reality those shouldn't be in user's wallet, but technically they can be
to be used when generating cardano-services db snapshot
add a cip68 handle to handle test db disable some flaky tests: there are no 'retiring' pools in db fix TypeormStakePoolProvider test setup to match partial strings
address could also be owned by script
…prop it does not add any new columns, but simplifies queries
a1061ae
to
559f57d
Compare
Context
TypeormHandleProvider can't resolve some required handle properties:
LW-6928
Proposed Solution
See commit log
Important Changes Introduced