forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GraphQL/TransactionBlock] ObjectChange Representation (MystenLabs#15074
) ## Description Bring `ObjectChange` representation inline with `BalanceChange`, `TransactionBlockEffects` etc. In particular objects are not loaded unless explicitly requested. This change also changes the `idCreated` and `idDeleted` fields to always produce a value. They are marked as optional to give us flexibility to change the schema in the future, not because they would otherwise ever be `None`. NB. I'm anticipating a follow-up change to not rely on the indexed object change at all, and instead derive this data from effects, by augmenting `TransactionEffectsAPI` to calculate this for us from raw effects. ## Test Plan ``` sui-graphql-rpc$ cargo nextest run sui-graphql-e2e-tests$ cargo nextest run -j 1 --features pg_integration ``` ## Stack - MystenLabs#14929 - MystenLabs#14930 - MystenLabs#14934 - MystenLabs#14935 - MystenLabs#14961 - MystenLabs#14974 - MystenLabs#15013 - MystenLabs#15014 - MystenLabs#15015 - MystenLabs#15016 - MystenLabs#15018 - MystenLabs#15020 - MystenLabs#15021 - MystenLabs#15036 - MystenLabs#15037 - MystenLabs#15038 - MystenLabs#15039 - MystenLabs#15040 - MystenLabs#15041 - MystenLabs#15042 - MystenLabs#15043 - MystenLabs#15044
- Loading branch information
Showing
7 changed files
with
158 additions
and
153 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
Oops, something went wrong.